/*
 * Kalash Digital Card Portal - Main Website Styles & Admin Dashboard Styles
 *
 * This stylesheet defines the visual design for the entire website,
 * focusing on a modern, dark theme with a vibrant pink accent.
 * It includes styles for header, hero, features, testimonials, CTA, footer,
 * and also common form elements like login/register pages.
 * Crucially, it now *also includes* the specific styling for the Admin Dashboard.
 * Fully mobile-responsive.
 */

/* --- Root Variables for Theming --- */
:root {
    --bg-dark: #121212; /* Main background color (very dark) */
    --bg-medium: #1c1c1c; /* Section background color (slightly lighter dark) */
    --bg-darker: #0a0a0a; /* Even darker background for CTA/specific sections */
    --bg-lightest: #242424; /* For input fields background */

    --text-primary: #e0e0e0; /* Main text color (light gray) */
    --text-secondary: #a0a0a0; /* Muted text/subtitle color (medium gray) */
    --text-heading: #ffffff; /* Heading color (white) */

    --accent-primary: #ff4081; /* Main accent color (vibrant pink) */
    --accent-hover: #e0336f; /* Darker pink for hover states */
    --accent-light: #ff66b2; /* Lighter pink for active/link hover */

    --border-color: #333; /* General border color */
    --shadow-color: rgba(0, 0, 0, 0.4); /* General shadow color */

    --success-color: #4CAF50; /* Green for success messages */
    --error-color: #f44336; /* Red for error messages */
    --info-color: #add8e6; /* Light blue for informational messages */
}

/* --- Universal Box-Sizing & Font Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* --- Base Body Styling --- */
body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    scroll-behavior: smooth;
    overflow-x: hidden; /* Prevents horizontal scrollbar */
    
    /* --- Styles for Centering Login/Register Pages --- */
    display: flex;
    flex-direction: column; /* Allows main content to stack naturally, but centers single elements */
    justify-content: center;
    align-items: center;
    min-height: 100vh; /* Ensures full viewport height for centering */
    margin: 0; /* Reset default body margin */
    padding: 0; /* Reset default body padding */
}

/* Remove centering for main homepage sections */
body.homepage {
    display: block; /* Revert to default block display for homepage */
    min-height: auto; /* Remove min-height constraint */
}


/* --- Container for Centering Content --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px; /* Horizontal padding for content */
}

/* --- Section Padding --- */
.section-padding {
    padding: 80px 0; /* Vertical padding for main sections */
}

.bg-medium {
    background-color: var(--bg-medium);
}

.bg-darker {
    background-color: var(--bg-darker);
}

/* --- Section Titles & Subtitles --- */
.section-title {
    font-size: 3.2em;
    color: var(--text-heading);
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: -0.02em; /* Tighter letter spacing for headings */
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.section-subtitle {
    font-size: 1.3em;
    color: var(--text-secondary);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px auto;
    line-height: 1.5;
}

.text-center {
    text-align: center;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent; /* Default for all buttons */
    /* Ensure text visibility */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.btn-primary {
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-light));
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(255, 64, 129, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(45deg, var(--accent-hover), var(--accent-primary));
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 64, 129, 0.6);
}

.btn-secondary {
    background-color: var(--text-secondary); /* A muted button */
    color: var(--bg-dark);
}

.btn-secondary:hover {
    background-color: #c0c0c0;
    transform: translateY(-2px);
}

/* FIX for Login Button Text Disappearance in Nav */
.btn-primary-outline {
    background-color: transparent;
    color: var(--accent-primary); /* Initial text color is pink */
    border-color: var(--accent-primary);
}

.btn-primary-outline:hover {
    background-color: var(--accent-primary); /* Background becomes pink */
    color: var(--text-heading) !important; /* FORCED to white to ensure visibility */
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(255, 64, 129, 0.3);
}

.btn-secondary-outline {
    background-color: transparent;
    color: var(--text-primary);
    border-color: var(--text-primary);
}

.btn-secondary-outline:hover {
    background-color: var(--text-primary);
    color: var(--bg-dark);
    transform: translateY(-2px);
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.25em;
    border-radius: 10px;
}

.btn-large-glow {
    padding: 20px 45px;
    font-size: 1.3em;
    border-radius: 12px;
    background: linear-gradient(45deg, #ff007f, #ff66b2); /* Brighter gradient */
    box-shadow: 0 8px 30px rgba(255, 0, 127, 0.6); /* More intense glow */
}

.btn-large-glow:hover {
    background: linear-gradient(45deg, #e00070, #ff4081);
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(255, 0, 127, 0.8);
}

/* --- Header & Navigation (for public site) --- */
.main-header {
    background-color: var(--bg-dark);
    padding: 15px 0;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-heading);
    letter-spacing: -0.03em;
}

.logo span {
    color: var(--accent-primary);
}

.nav-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 35px; /* Space between nav items */
}

.nav-menu li a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 1.05em;
    transition: color 0.3s ease, transform 0.2s ease;
    position: relative;
    /* Ensure text is always rendered clearly */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.nav-menu li a:hover {
    color: var(--accent-primary);
    transform: translateY(-2px);
}

/* Underline effect on hover */
.nav-menu li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    display: block;
    margin-top: 5px;
    right: 0;
    background: var(--accent-primary);
    transition: width 0.3s ease;
}

.nav-menu li a:hover:after {
    width: 100%;
    left: 0;
    background: var(--accent-primary);
}

/* Style for login/register buttons in nav */
.nav-menu .btn {
    padding: 10px 20px;
    font-size: 1em;
    margin-left: 10px; /* Space from other nav links */
}

.nav-menu .btn-primary-outline {
    border-radius: 6px;
}

.nav-menu .btn-secondary {
    background-color: var(--text-primary);
    color: var(--bg-dark);
    border-radius: 6px;
}


/* --- Hamburger for Mobile Navigation --- */
.hamburger {
    display: none; /* Hidden by default on larger screens */
    font-size: 35px;
    cursor: pointer;
    color: var(--accent-primary);
}

/* --- Hero Section --- */
.hero-section {
    display: flex;
    flex-direction: column; /* Stack on mobile */
    align-items: center;
    justify-content: center;
    padding: 100px 25px;
    background: radial-gradient(circle at top left, #1c1c1c, #121212 70%); /* Subtle gradient */
    min-height: 85vh; /* Ensure hero takes most of the screen */
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Background grid/pattern (optional but can look cool) */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at center, rgba(255, 64, 129, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.1;
    z-index: 0;
}


.hero-content {
    z-index: 1; /* Bring content above background pattern */
    max-width: 900px;
}

.hero-title {
    font-size: 4.5em; /* Large, impressive title */
    color: var(--text-heading);
    margin-bottom: 25px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.05em;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.5em;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 40px auto;
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    gap: 25px; /* Space between buttons */
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow buttons to wrap on small screens */
}

.hero-image {
    margin-top: 60px;
    z-index: 1;
    position: relative;
}

.hero-image img {
    max-width: 800px; /* Large image */
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6); /* Prominent shadow for the image */
    transition: transform 0.3s ease;
}

.hero-image img:hover {
    transform: scale(1.01); /* Subtle zoom on hover */
}


/* --- Features Section --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive grid */
    gap: 40px;
}

.feature-item {
    background-color: var(--bg-medium);
    padding: 35px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, background-color 0.3s ease;
    border: 1px solid transparent;
}

.feature-item:hover {
    transform: translateY(-10px);
    background-color: #2a2a2a; /* Slightly lighter on hover */
    border-color: var(--accent-primary); /* Accent border on hover */
}

.feature-icon {
    font-size: 3.5em;
    color: var(--accent-primary);
    margin-bottom: 20px;
    display: block; /* Ensures it takes full width for centering */
    transition: transform 0.3s ease;
}

.feature-item:hover .feature-icon {
    transform: rotateY(10deg) scale(1.1); /* Subtle icon animation on hover */
}

.feature-item h3 {
    font-size: 1.8em;
    color: var(--text-heading);
    margin-bottom: 15px;
    font-weight: 600;
}

.feature-item p {
    font-size: 1.05em;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* --- How It Works Section --- */
.how-it-works-section .section-title,
.how-it-works-section .section-subtitle {
    margin-bottom: 40px;
}

.steps-grid {
    display: flex; /* Using flex for simple, numbered steps */
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.step-item {
    flex: 1; /* Distribute space evenly */
    min-width: 280px; /* Minimum width for each step */
    background-color: var(--bg-dark); /* Darker background for steps */
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.step-number {
    font-size: 3.5em;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
    display: inline-block;
    transition: transform 0.3s ease;
}

.step-item:hover .step-number {
    transform: scale(1.05);
}

.step-item h3 {
    font-size: 1.8em;
    color: var(--text-heading);
    margin-bottom: 10px;
    font-weight: 600;
}

.step-item p {
    font-size: 1.05em;
    color: var(--text-secondary);
}


/* --- Testimonials Section --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.testimonial-item {
    background-color: var(--bg-medium);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Push author to bottom */
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.testimonial-item:hover {
    transform: translateY(-8px);
    background-color: #2a2a2a;
}

.testimonial-item p {
    font-size: 1.1em;
    color: var(--text-primary);
    margin-bottom: 25px;
    font-style: italic;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: auto; /* Push to bottom */
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 3px solid var(--accent-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.testimonial-author h4 {
    font-size: 1.2em;
    color: var(--text-heading);
    margin-bottom: 5px;
    font-weight: 600;
}

.testimonial-author span {
    font-size: 0.9em;
    color: var(--text-secondary);
}

/* --- Call to Action (CTA) Section --- */
.cta-section {
    padding: 100px 0;
}

.cta-title {
    font-size: 3.5em; /* Larger for impact */
    margin-bottom: 20px;
    line-height: 1.2;
}

.cta-subtitle {
    font-size: 1.4em;
    margin-bottom: 50px;
}


/* --- Main Footer --- */
.main-footer {
    background-color: var(--bg-medium);
    color: var(--text-secondary);
    padding: 60px 0 20px 0;
    font-size: 0.95em;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    flex-wrap: wrap; /* Allow columns to wrap */
    justify-content: space-between;
    gap: 30px; /* Space between columns */
    margin-bottom: 40px;
}

.footer-col {
    flex: 1; /* Distribute space */
    min-width: 250px; /* Minimum width before wrapping */
}

.footer-col h3 {
    color: var(--text-heading);
    font-size: 1.5em;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-col p {
    margin-bottom: 10px;
    line-height: 1.7;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--accent-primary);
}

.social-icons {
    margin-top: 20px;
}

.social-icons a {
    color: var(--text-primary);
    font-size: 1.5em;
    margin-right: 15px;
    transition: color 0.3s ease, transform 0.2s ease;
}

.social-icons a:hover {
    color: var(--accent-primary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #2a2a2a;
    padding-top: 20px;
    margin-top: 20px;
}

.footer-bottom p {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.footer-bottom a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: var(--accent-primary);
}


/* --- Login & General Form Container --- */
.form-container {
    max-width: 450px;
    margin: 80px auto; /* More space from top */
    padding: 40px;
    background: var(--bg-medium); /* Consistent with dashboard cards */
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    text-align: center;
    color: var(--text-primary);
    animation: fadeIn 0.8s ease-out;
}

.form-container h2 {
    color: var(--accent-primary); /* Consistent pink */
    margin-bottom: 30px;
    font-size: 2.5em;
    font-weight: 700;
}

.form-container form {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Space between form elements */
    align-items: center; /* Center form elements horizontally */
}

.form-container label {
    display: block;
    text-align: left;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-heading);
    width: 100%; /* Make label take full width */
}

.form-container .input-group {
    width: 100%;
    margin-bottom: 15px; /* Space between input groups */
}

.form-container .input-box {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--bg-dark); /* Darker background for inputs */
    color: var(--text-primary);
    font-size: 1.1em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box; /* Include padding/border in element's total width and height */
}

.form-container .input-box:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(255, 64, 129, 0.3);
    outline: none;
}

.form-container button[type="submit"] {
    background-color: var(--accent-primary); /* Pink button */
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: 100%; /* Make button take full width */
    max-width: 250px; /* Limit button width */
    margin-top: 10px;
}

.form-container button[type="submit"]:hover {
    background-color: #e03274; /* Darker pink on hover */
    transform: translateY(-2px);
}

.form-container .error {
    color: var(--error-color); /* Red color for error messages */
    background-color: rgba(255, 0, 0, 0.1);
    border: 1px solid var(--error-color);
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.95em;
}

.form-container p {
    margin-top: 25px;
    color: var(--text-secondary);
}

.form-container p a {
    color: var(--accent-secondary); /* Another accent color for links */
    text-decoration: none;
    transition: color 0.3s ease;
}

.form-container p a:hover {
    color: var(--accent-primary);
    text-decoration: underline;
}

/* Keyframe for fade-in animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 500px) {
    .form-container {
        margin: 40px 20px;
        padding: 30px 20px;
    }
}


/* --- Admin Dashboard Specific Styles --- */

/* Reset body display for dashboard */
body.dashboard-page {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start; /* This is key to prevent stretching */
    min-height: 100vh; /* Ensure it fills the viewport vertically */
    overflow-x: hidden; /* Keep this to prevent horizontal scroll */
    background-color: var(--bg-dark);
    color: var(--text-primary);
}

/* Sidebar Styling */
.sidebar {
    width: 250px; /* Fixed width */
    background-color: var(--bg-medium); /* Changed from --bg-secondary to --bg-medium based on your variables */
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Pushes logout to bottom */
    height: 100vh; /* Make it fill the viewport height */
    position: fixed; /* Keep it fixed on scroll */
    top: 0;
    left: 0;
    overflow-y: auto; /* Allow sidebar to scroll internally if content is too long */
    overflow-x: hidden; /* Prevent horizontal scroll in sidebar */
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.5);
    z-index: 1000; /* Ensure it's on top */
}

.sidebar h3 {
    color: var(--accent-primary); /* Pink heading */
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.8em;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1; /* Allows the list to take up available space */
}

.sidebar ul li {
    margin-bottom: 15px;
}

.sidebar ul li a {
    display: flex;
    align-items: center;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 12px 15px;
    border-radius: 8px;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-size: 1.05em;
    font-weight: 500;
}

.sidebar ul li a:hover {
    background-color: var(--bg-dark); /* Lighter dark on hover */
    color: var(--accent-primary);
}

.sidebar ul li a.active {
    background-color: var(--accent-primary); /* Pink background for active link */
    color: white; /* White text for active link */
    box-shadow: 0 4px 10px rgba(255, 64, 129, 0.4);
}

.sidebar ul li a.active i {
    color: white; /* Ensure icon is white in active state */
}

.sidebar ul li a i {
    margin-right: 12px;
    font-size: 1.3em;
    color: var(--text-secondary); /* Default icon color */
    transition: color 0.3s ease;
}

.sidebar ul li a:hover i {
    color: var(--accent-primary); /* Pink icon on hover */
}

.logout-link-sidebar {
    margin-top: 30px; /* Space from menu items */
    text-align: center;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.logout-link-sidebar a {
    display: inline-block; /* For button-like padding */
    color: var(--error-color); /* Red for logout */
    text-decoration: none;
    padding: 10px 20px;
    border: 1px solid var(--error-color);
    border-radius: 8px;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    font-weight: 600;
}

.logout-link-sidebar a:hover {
    background-color: var(--error-color);
    color: white;
}

.logout-link-sidebar a i {
    margin-right: 8px;
}


/* Main Content Area */
.dashboard-container-main {
    flex-grow: 1; /* Allows it to take up remaining horizontal space */
    padding: 30px;
    background-color: var(--bg-dark);
    margin-left: 250px; /* Offset for the fixed sidebar */
    /* Important: Ensure this container fills the remaining vertical space */
    min-height: 100vh; /* Make sure it's at least as tall as the viewport */
    overflow-y: auto; /* <--- This allows the main content to scroll vertically */
    overflow-x: hidden; /* Prevent horizontal scroll within this container */
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.dashboard-header h1 {
    font-size: 2.5em;
    color: var(--text-heading);
    font-weight: 700;
}

.admin-info {
    font-size: 1.1em;
    color: var(--text-secondary);
}

/* Stat Cards Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive grid for cards */
    gap: 25px;
    margin-bottom: 40px;
}

.stat-card {
    background-color: var(--bg-medium); /* Lighter dark for cards */
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
    border-color: var(--accent-primary);
}

.stat-card .icon {
    font-size: 3em;
    color: var(--accent-primary); /* Pink icons */
    margin-bottom: 15px;
}

.stat-card h4 {
    font-size: 1.3em;
    color: var(--text-heading);
    margin-bottom: 10px;
    font-weight: 600;
}

.stat-card p {
    font-size: 2.2em;
    color: var(--text-heading);
    font-weight: 700;
    line-height: 1;
}

/* Data Table Container */
.data-table-container {
    background-color: var(--bg-medium);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    overflow-x: auto; /* Allow horizontal scroll for large tables on small screens */
}

.data-table-container h2 {
    color: var(--text-heading);
    margin-bottom: 25px;
    font-size: 2em;
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 0.95em;
}

table th,
table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    white-space: nowrap; /* Prevent content from wrapping in cells */
}

table th {
    background-color: var(--bg-dark); /* Darker header for table */
    color: var(--text-heading);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9em;
}

table tr:hover {
    background-color: #242424; /* Subtle hover effect on rows */
}

/* --- Profile Picture/Icon Styling for Tables and Detail Pages (Updated) --- */
/* For small profile thumbnails in tables (e.g., view_users.php, dashboard.php) */
.profile-thumb {
    width: 40px; /* Size for table thumbnails */
    height: 40px; /* Must be same as width for perfect circle */
    border-radius: 50%; /* Makes the image circular */
    object-fit: cover; /* Ensures the image covers the area without distortion */
    border: 1px solid var(--border-color); /* Optional: subtle border */
    vertical-align: middle; /* Aligns with text if next to it */
    display: block; /* Ensures block behavior for centering/flex if needed */
}

/* Style for the default icon when no small photo is available in tables */
.profile-thumb.default-icon {
    display: flex; /* Use flexbox to center the icon */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    background-color: var(--bg-medium); /* A background color for the circle */
    color: var(--text-secondary); /* Color of the icon */
    font-size: 20px; /* Adjust icon size as needed for small thumb */
    /* Inherits width, height, border-radius from .profile-thumb */
}

/* For larger profile photos on individual user view page (e.g., view_user.php) */
.profile-photo-lg {
    width: 100px; /* Larger size for details page */
    height: 100px; /* Same as width for circle */
    border-radius: 50%; /* Make it circular */
    object-fit: cover; /* Ensure image fills the circle */
    border: 3px solid var(--accent-primary); /* A more prominent border, using accent-primary */
    display: block; /* Make it a block element for centering */
    margin: 0 auto 20px auto; /* Center it and add space below */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3); /* Optional: add a shadow */
}

/* Style for the default icon when no large photo is available on view_user.php */
.profile-photo-lg.default-icon-lg {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-medium); /* A darker background for the icon circle */
    color: var(--text-secondary); /* Color of the icon */
    font-size: 50px; /* Larger icon size */
    /* Inherits width, height, border-radius from .profile-photo-lg */
}


/* --- Status Badges (Existing - Confirmed) --- */
.status-approved {
    background-color: var(--success-color);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.85em;
    display: inline-block; /* Added for consistent behavior */
}

.status-pending {
    background-color: var(--info-color); /* Light blue as per your variable */
    color: var(--bg-dark); /* Dark text for light background */
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.85em;
    display: inline-block; /* Added for consistent behavior */
}

/* Assuming you want a status-rejected if not present */
.status-rejected {
    background-color: var(--error-color); /* Red as per your variable */
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.85em;
    display: inline-block; /* Added for consistent behavior */
}


/* --- Action Links (Buttons in Table) (Existing - Confirmed) --- */
.action-links {
    display: flex;
    gap: 8px; /* Space between action buttons */
    flex-wrap: wrap;
}

.btn-table-action {
    padding: 8px 12px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: inline-flex; /* For icon alignment */
    align-items: center;
    gap: 5px;
    border: none; /* Ensure no default button border */
}

.btn-table-action.view {
    background-color: #007bff; /* Blue for view as per your original */
    color: white;
}

.btn-table-action.view:hover {
    background-color: #0056b3;
}

.btn-table-action.approve {
    background-color: var(--success-color); /* Green for approve as per your original */
    color: white;
}

.btn-table-action.approve:hover {
    background-color: #45a049;
}

.btn-table-action.delete {
    background-color: var(--error-color); /* Red for delete as per your original */
    color: white;
}

.btn-table-action.delete:hover {
    background-color: #d32f2f;
}

/* Pagination (if implemented later) */
.pagination {
    margin-top: 25px;
    text-align: center;
}

.pagination a, .pagination span {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 5px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    text-decoration: none;
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.pagination a:hover {
    background-color: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

.pagination span.current-page {
    background-color: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
    font-weight: 600;
}


/* --- Message Display Styles (for session messages) --- */
.message {
    padding: 15px 20px;
    margin-bottom: 25px;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.message.success {
    background-color: rgba(76, 175, 80, 0.2);
    color: var(--success-color);
    border: 1px solid var(--success-color);
}

.message.error {
    background-color: rgba(244, 67, 54, 0.2);
    color: var(--error-color);
    border: 1px solid var(--error-color);
}

.message.info {
    background-color: rgba(173, 216, 230, 0.2);
    color: var(--info-color);
    border: 1px solid var(--info-color);
}

.message i {
    font-size: 1.5em;
}

/* --- Mobile Responsiveness --- */

/* Tablet & Smaller Desktop Screens */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }

    .section-title {
        font-size: 2.8em;
    }

    .section-subtitle {
        font-size: 1.2em;
    }

    /* Hero */
    .hero-section {
        padding: 80px 20px;
    }

    .hero-title {
        font-size: 3.8em;
    }

    .hero-subtitle {
        font-size: 1.3em;
    }

    .hero-actions {
        gap: 20px;
    }

    .btn-large {
        padding: 16px 35px;
        font-size: 1.15em;
    }

    .btn-large-glow {
        padding: 18px 40px;
        font-size: 1.2em;
    }

    .hero-image {
        margin-top: 50px;
    }

    /* Features Grid */
    .features-grid {
        gap: 30px;
    }

    /* Steps Grid (How it Works) */
    .steps-grid {
        gap: 20px;
    }

    .step-item {
        min-width: 250px;
    }

    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Adjust min-width */
    }

    /* Footer */
    .footer-col {
        min-width: 220px;
    }

    /* Forms */
    .form-container {
        padding: 30px;
    }

    .form-container h2 {
        font-size: 2.2em;
    }

    /* Dashboard specific for tablets */
    .sidebar {
        width: 200px;
        min-width: 200px;
        padding: 25px 15px;
    }
    .sidebar h3 {
        font-size: 1.6em;
        margin-bottom: 30px;
    }
    .sidebar ul li a {
        font-size: 1em;
        padding: 10px 12px;
    }
    .sidebar ul li a i {
        font-size: 1.2em;
        margin-right: 10px;
    }

    .dashboard-container-main {
        padding: 25px;
    }
    .dashboard-header h1 {
        font-size: 2.2em;
    }
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
    .stat-card .icon {
        font-size: 2.5em;
    }
    .stat-card h4 {
        font-size: 1.2em;
    }
    .stat-card p {
        font-size: 2em;
    }
    .data-table-container {
        padding: 25px;
    }
    .data-table-container h2 {
        font-size: 1.8em;
    }
    table th, table td {
        padding: 10px 12px;
        font-size: 0.9em;
    }
    .btn-table-action {
        padding: 6px 10px;
        font-size: 0.8em;
    }
    .profile-thumb {
        width: 40px;
        height: 40px;
    }
}

/* Mobile Screens */
@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2.3em;
        margin-bottom: 15px;
    }

    .section-subtitle {
        font-size: 1.05em;
        margin-bottom: 40px;
    }

    /* Header & Navigation */
    .nav-menu {
        display: none; /* Hide navigation menu by default */
        flex-direction: column; /* Stack menu items vertically */
        width: 100%;
        background-color: var(--bg-dark); /* Full width dark background */
        position: absolute;
        top: 70px; /* Position below header */
        left: 0;
        padding: 20px 0;
        text-align: center;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
        border-top: 1px solid var(--border-color);
        animation: slideDown 0.3s ease-out forwards; /* Simple animation */
    }

    @keyframes slideDown {
      from { opacity: 0; transform: translateY(-20px); }
      to { opacity: 1; transform: translateY(0); }
    }


    .nav-menu.active {
        display: flex; /* Show menu when active */
    }

    .nav-menu ul {
        flex-direction: column; /* Stack links */
        gap: 20px; /* Space between stacked links */
    }

    .nav-menu li a {
        font-size: 1.1em;
    }

    .nav-menu li a:after { /* Remove hover underline on mobile menu */
        display: none;
    }

    .nav-menu .btn {
        margin-top: 15px; /* Add space between buttons in mobile nav */
        margin-left: 0; /* Remove left margin */
        width: 80%; /* Make buttons wider */
    }

    .hamburger {
        display: block; /* Show hamburger icon on mobile */
    }

    .logo {
        font-size: 24px;
    }

    /* Hero Section */
    .hero-section {
        padding: 60px 15px;
    }

    .hero-title {
        font-size: 2.8em;
        margin-bottom: 15px;
    }

    .hero-subtitle {
        font-size: 1.05em;
    }
    /* Rest of your CSS, truncated for brevity in this response, but would be included in the full file */
}