/* css/style.css - C2G MALL DEFINITIVE REDESIGN */

/* --- Google Font & Global Styles --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --primary-blue: #0052FF;
    --primary-dark: #0d1f33;
    --text-dark: #212529;
    --text-body: #495057;
    --text-muted: #6c757d;
    --bg-light: #f8f9fa;
    --white: #FFFFFF;
    --border-color: #e9ecef;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.08);

    /* Added from your example for consistency */
    --card-bg: var(--white);
    /* Assuming card-bg is white */
    --card-shadow: var(--shadow);
    /* Using existing shadow */
    --text-light: #6c757d;
    /* Assuming text-light maps to text-muted */
    --secondary-color: var(--primary-blue);
    /* Using primary blue as secondary */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--white);
    color: var(--text-body);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
    /* Prevents horizontal scroll from menu sliding in/out */
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* GLOBAL: Ensures all images are responsive */


/* --- Reusable Components --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(0, 82, 255, 0.3);
}

.btn-primary:hover {
    background-color: #0045d1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 82, 255, 0.4);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--text-dark);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--bg-light);
    border-color: #ced4da;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1.1rem;
}

.btn-cta {
    background-color: var(--white);
    color: var(--primary-blue);
    font-size: 1.1rem;
    padding: 15px 35px;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.btn-cta:hover {
    background-color: #f0f5ff;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.8rem;
    color: var(--primary-dark);
    font-weight: 700;
}

.section-title p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 10px auto 0 auto;
    font-size: 1.1rem;
}

/* --- HEADER & NAVIGATION (DESKTOP FIRST) --- */
.main-header {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--card-shadow);
}

.main-nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    padding: 0 20px;
}

.main-nav .logo {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-blue);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

#desktop-nav-links {
    display: flex;
    gap: 2rem;
}

#desktop-nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

#desktop-nav-links a:hover {
    color: var(--text-dark);
}

#desktop-nav-links a.active {
    color: var(--text-dark);
    border-bottom-color: var(--secondary-color);
}

#desktop-nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* AUTHENTICATION STATE (STAYS THE SAME) */
.logged-out-view {
    display: none;
    gap: 10px;
}

body:not(.is-logged-in) .logged-out-view {
    display: flex;
}

/* This is defined for general use on index.html, not specific dashboard.html header */
.logged-in-view {
    display: none;
}

body.is-logged-in .logged-in-view {
    display: flex;
}

/* HAMBURGER ICON: HIDDEN ON DESKTOP by default */
.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--text-dark);
}

/* --- MOBILE MENU (HIDDEN BY DEFAULT ON ALL SCREENS INITIALLY) --- */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    max-width: 80%;
    height: 100vh;
    background: var(--white);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    /* Hidden off-screen by default */
    transition: transform 0.3s ease-in-out;
    z-index: 2000;

    display: none;
    /* Crucial: Completely hidden from layout on desktop/initial state */
    flex-direction: column;
    padding: 20px;
}

.mobile-menu-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0 20px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.mobile-menu-top h3 {
    font-size: 1.5rem;
    color: var(--primary-dark);
}

.close-icon {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-dark);
}

.mobile-nav-links-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav-links-wrapper a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 1.1rem;
    padding: 10px 15px;
    /* Added horizontal padding for touch targets */
    transition: color 0.3s ease, background-color 0.3s ease;
    width: 100%;
    /* Ensures links take full width and stack */
    border-radius: 5px;
}

.mobile-nav-links-wrapper a:hover {
    color: var(--primary-blue);
    background-color: var(--bg-light);
    /* Added hover background */
}

.mobile-auth-wrapper {
    display: flex;
    flex-direction: column;
    /* Ensures buttons stack */
    gap: 15px;
    width: 100%;
}

.mobile-auth-wrapper .logged-out-view,
.mobile-auth-wrapper .logged-in-view {
    display: flex;
    /* Ensure these are flex for column direction */
    flex-direction: column;
    /* Ensure buttons inside stack */
    width: 100%;
    gap: 15px;
}

.mobile-auth-wrapper .btn {
    width: 100%;
    text-align: center;
    font-size: 1.1rem;
}

/* Add an overlay to dim content when menu is open */
.body-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

body.mobile-menu-open .body-overlay {
    opacity: 1;
    visibility: visible;
}


/* --- Hero Section --- */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    padding: 80px 0;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 35px;
    max-width: 500px;
}

.hero-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

/* --- Trusted Partners Section --- */
.trusted-partners {
    padding: 40px 0;
    background-color: var(--bg-light);
    text-align: center;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.trusted-partners p {
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.partner-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.partner-logos img {
    height: 40px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.partner-logos img:hover {
    opacity: 1;
}

/* --- Services & How it Works --- */
.services-section {
    padding: 100px 0;
}

.services-grid.two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.service-card.professional {
    background-color: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    text-align: left;
    transition: all 0.3s ease;
}

.service-card.professional:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-blue);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.service-card h4 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.learn-more-link {
    font-weight: 600;
    color: var(--primary-blue);
    text-decoration: none;
    display: inline-block;
    margin-top: 20px;
}

.learn-more-link i {
    transition: transform 0.2s ease;
}

.learn-more-link:hover i {
    transform: translateX(5px);
}

.how-it-works-section {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.how-it-works-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.how-it-works-grid::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #dbeaff;
    z-index: 1;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    position: relative;
    z-index: 2;
    background: var(--bg-light);
    padding: 10px 0;
}

.step-number {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    background-color: var(--primary-blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 1.2rem;
    border: 4px solid var(--bg-light);
}

.step-content h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
}

/* --- Procurement & Why Choose Us --- */
.procurement-details-section {
    padding: 100px 0;
}

.procurement-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.procurement-content h2 {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.procurement-content .section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.procurement-steps {
    list-style: none;
    margin-bottom: 30px;
    padding: 0;
}

.procurement-steps li {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    padding-left: 40px;
    margin-bottom: 25px;
}

.procurement-steps li i {
    position: absolute;
    left: 0;
    font-size: 1.5rem;
    color: var(--primary-blue);
}

.procurement-steps li:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 30px;
    height: 30px;
    width: 2px;
    background-color: #dbeaff;
    z-index: 1;
}

.procurement-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.why-choose-us-section {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item .stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.stat-item .stat-label {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
}

/* --- CTA & Footer --- */
.cta-section {
    text-align: center;
    padding: 100px 20px;
    background-color: var(--primary-dark);
    color: var(--white);
}

.cta-section h2 {
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 1.2rem;
    opacity: 0.8;
    margin-bottom: 35px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.professional-footer {
    background-color: var(--bg-light);
    color: var(--text-body);
    padding-top: 60px;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-col .logo {
    color: var(--primary-blue);
}

.footer-col p {
    color: var(--text-muted);
}

.footer-col h4 {
    font-size: 1rem;
    margin-bottom: 20px;
    font-weight: 600;
    color: var(--text-dark);
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul a {
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-col ul a:hover {
    color: var(--primary-blue);
}

.social-icons {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 20px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- Auth Pages --- */
.auth-body {
    background-color: var(--bg-light);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.auth-container {
    width: 100%;
    max-width: 420px;
}

.auth-form-container {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.auth-logo {
    font-weight: 700;
    text-decoration: none;
    font-size: 1.5rem;
    margin-bottom: 25px;
    display: inline-block;
    color: var(--primary-blue);
}

.auth-form-container h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.auth-form-container form {
    text-align: left;
}

.auth-form-container .form-group {
    margin-bottom: 20px;
}

.auth-form-container .form-group label {
    font-weight: 500;
    color: var(--text-dark);
    display: block;
    margin-bottom: 8px;
}

.auth-form-container .form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
}

.auth-btn {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 10px;
}

.auth-switch {
    margin-top: 30px;
    font-size: 1rem;
    color: var(--text-muted);
}

.auth-switch a {
    color: var(--primary-blue);
    font-weight: 600;
    text-decoration: none;
}


/* --- RESPONSIVE STYLES FOR MOBILE / TABLET --- */
@media (max-width: 992px) {
    .main-nav {
        padding: 0 15px;
    }

    /* Adjust main-nav padding for smaller screens */

    /* Desktop navigation elements are HIDDEN on mobile */
    #desktop-nav-links,
    #desktop-nav-right {
        display: none;
    }

    body {
        overflow-x: hidden;
        justify-content: center;
        width: 100%;
    }

    /* Hamburger icon is SHOWN on mobile */
    .hamburger {
        display: block;
        z-index: 1002;
    }

    /* When mobile menu is open, body gets a class */
    body.mobile-menu-open .mobile-menu {
        transform: translateX(0);
        /* Slide mobile menu into view */
    }

    section {
        padding: 10px;
    }

    .main-nav .logo {
        font-size: 2rem;
    }



    marquee .partner-logos img {
        display: none;
        gap: 40px;
        /* spacing between items */
        animation: none;
    }

    .mobile-menu a {
        overflow: hidden;
        display: block;

    }

    /* General Layout Adjustments */
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 60px 0;
    }

    .hero-content {
        order: 1;
    }

    .hero-image {
        order: 2;
        margin-bottom: 30px;
        justify-self: center;
        width: 90%;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
        max-width: 90%;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    /* Adjusted for mobile */

    .section-title {
        margin-bottom: 40px;
    }

    .section-title h2,
    .cta-section h2 {
        font-size: 2.4rem;
    }

    .section-title p {
        font-size: 1rem;
    }

    .partner-logos {
        gap: 30px;
    }

    /* Reduce gap for smaller screens */
    .partner-logos img {
        height: 35px;
    }

    .services-section,
    .procurement-details-section,
    .why-choose-us-section,
    .how-it-works-section,
    .cta-section {
        padding: 80px 0;
        /* Slightly reduce section padding */
        justify-self: center;
        width: 90%;
    }

    .services-grid.two-cols,
    .procurement-grid {
        grid-template-columns: 1fr;
        justify-self: center;
        width: 90%;
    }

    .procurement-image {
        order: -1;
        margin-bottom: 40px;
    }

    .procurement-content h2 {
        font-size: 2.4rem;
    }

    .procurement-content .section-subtitle {
        font-size: 1rem;
    }

    .procurement-steps {
        padding-left: 20px;
        /* Adjust for mobile list */
    }

    .procurement-steps li {
        font-size: 1.1rem;
        padding-left: 40px;
        margin-bottom: 20px;
    }

    .procurement-steps li i {
        left: 5px;
        font-size: 1.3rem;
    }

    .procurement-steps li:not(:last-child)::before {
        left: 16px;
        top: 30px;
        height: 25px;
    }


    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* 2 columns for tablets */
    .stat-item .stat-number {
        font-size: 2.5rem;
    }

    .how-it-works-grid::before {
        left: 16px;
    }

    /* Adjust timeline line position */
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        border: 3px solid var(--bg-light);
    }

    .step-item {
        gap: 15px;
    }

    .step-content h4 {
        font-size: 1.2rem;
    }

    .step-content p {
        font-size: 0.95rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .footer-col h4 {
        margin-bottom: 15px;
    }

    .social-icons {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title h2,
    .cta-section h2 {
        font-size: 2rem;
    }

    .stat-item .stat-number {
        font-size: 2.2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col {
        margin-bottom: 20px;
    }

    .footer-col:last-child {
        margin-bottom: 0;
    }

    .social-icons {
        justify-content: center;
    }

    /* Center social icons on smallest screens */
    .footer-col h4 {
        text-align: center;
    }

    /* Center footer titles */

    /* Smallest screen adjustments */
    .hero {
        padding: 40px 0;
    }

    .services-section,
    .procurement-details-section,
    .why-choose-us-section,
    .how-it-works-section,
    .cta-section {
        padding: 60px 0;
    }

    .procurement-content h2 {
        font-size: 2rem;
    }

    .procurement-steps {
        padding-left: 0;
    }

    /* Remove extra padding for smallest */
    .procurement-steps li {
        font-size: 1rem;
        padding-left: 30px;
        gap: 10px;
    }

    .procurement-steps li i {
        font-size: 1.2rem;
        left: 0;
    }

    .procurement-steps li:not(:last-child)::before {
        left: 10px;
        height: 20px;
        top: 25px;
    }
}



marquee {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 10px 0;
}

marquee .partner-logos {
    display: flex;
    gap: 40px;
    /* spacing between items */
    animation: marquee 10s linear infinite;
}

marquee .partner-logos {
    font-size: 1.2rem;
    font-weight: 600;
}

/* Keyframes to move left */
@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}



/* style.css (Add this wherever you put your form styles or reusable components) */

.form-group.math-captcha-group #math-puzzle {
    font-weight: 600;
    color: var(--primary-dark);
    margin-left: 5px;
    /* Space between "Solve:" and the puzzle */
}

#math-error {
    margin-top: 5px;
    font-size: 0.85em;
    color: #dc3545;
    /* Red color for error messages */
    display: none;
    /* Hidden by default */
}

/* You might want to adjust the form group margin if it feels too close */
.auth-form-container .form-group {
    margin-bottom: 20px;
    /* Keep consistent spacing */
}


.forgot-password-link {
    text-decoration: none;
    font-weight: 500;
    color: var(--primary-blue);
    margin-top: 200px;
}

/* css/dashboard.css - The Final, Definitive Stylesheet for the User Dashboard */

/* --- Main Dashboard Layout & Theme --- */
.dashboard-body {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.dashboard-body.sidebar-open {
    overflow: hidden;
    /* Prevent scrolling when mobile sidebar is open */
}

.dashboard-layout {
    display: flex;
    min-height: 100vh;
}

.dashboard-main {
    flex-grow: 1;
    padding: 40px;
    overflow-y: auto;
    /* Allow main content to scroll if it overflows */
}

.dashboard-header {
    margin-bottom: 40px;
}

.dashboard-header h1 {
    color: var(--text-dark);
    font-size: 2.5rem;
}

.content-panel {
    display: none;
    /* Hidden by default, shown by JS */
    opacity: 0;
    /* For smooth transitions */
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.content-panel.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* --- Sidebar --- */
/* --- Sidebar --- */
.sidebar {
    width: 280px;
    /* Slightly wider sidebar */
    background-color: var(--white);
    border-right: 1px solid var(--border-color);
    padding: 30px;
    flex-shrink: 0;
    transition: transform 0.3s ease-in-out;
    z-index: 1100;
    /* --- FIX: Make sidebar sticky --- */
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    /* Allows sidebar to scroll if it has too many items */
}

.sidebar .logo {
    color: var(--primary-blue);
    margin-bottom: 40px;
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
}

.sidebar-profile {
    display: flex;
    align-items: center;
    padding: 10px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.profile-avatar {
    width: 45px;
    /* Slightly larger avatar */
    height: 45px;
    border-radius: 50%;
    background-color: var(--primary-blue);
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    margin-right: 15px;
    flex-shrink: 0;
    font-size: 1.2rem;
    /* Make initial stand out */
}

.profile-info {
    display: flex;
    flex-direction: column;
    line-height: 1.4;
}

.profile-name {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.1rem;
}

.profile-id {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
}

.sidebar-nav li {
    margin-bottom: 8px;
    /* Slightly reduced margin */
}

.sidebar-nav a {
    color: var(--text-muted);
    font-weight: 500;
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.sidebar-nav a:hover {
    color: var(--primary-blue);
    background: #e6f0ff;
}

.sidebar-nav a.active {
    background-color: var(--primary-blue);
    color: var(--white);
    font-weight: 600;
}

.sidebar-nav .icon {
    font-size: 1.2rem;
    margin-right: 15px;
    width: 20px;
    text-align: center;
}

/* --- Dashboard Cards & Components --- */
.dash-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dash-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.dash-card h3 {
    margin-bottom: 20px;
    font-weight: 600;
    color: var(--primary-dark);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: var(--white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    /* Center content in stat cards */
}

.stat-card .icon {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--primary-blue);
}

/* Larger icon */
.stat-card .value {
    color: var(--text-dark);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

/* Larger value */
.stat-card .label {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    background: #f1f3f5;
    color: var(--text-dark);
    padding: 30px 20px;
    border-radius: 12px;
    transition: background 0.3s ease;
    font-weight: 500;
}

.action-card:hover {
    background: #e9ecef;
}

.action-card i {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: var(--primary-blue);
}

.shipment-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.shipment-item-detailed {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    /* image, info, progress, eta */
    align-items: center;
    gap: 20px;
    background-color: var(--bg-light);
    /* Slight background for items */
    padding: 15px;
    border-radius: 8px;
}

.shipment-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.shipment-info strong {
    color: var(--primary-dark);
    font-size: 1.1rem;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 120px;
}

.progress-bar {
    flex-grow: 1;
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: var(--secondary-green);
    border-radius: 4px;
}

/* Define secondary-green if not existing */
.eta {
    font-weight: 600;
    text-align: right;
    color: var(--text-dark);
}

.card-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.card-toolbar input {
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    width: 250px;
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.btn-icon {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: all .2s ease;
}

.btn-icon:hover {
    background-color: var(--bg-light);
    color: var(--primary-blue);
}

.address-card {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    border-radius: 12px;
    padding: 25px;
    line-height: 2;
    font-size: 1.05rem;
}

#copy-address-btn {
    width: 100%;
    margin-top: 20px;
}

#copy-address-btn.copied {
    background-color: #5cb85c;
    border-color: #5cb85c;
    color: var(--white);
}

.important-notes {
    margin-top: 20px;
    padding: 15px;
    background: #fffbe6;
    border: 1px solid #ffe58f;
    border-radius: 8px;
}

.important-notes h4 {
    color: #d46b08;
    margin-bottom: 10px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.important-notes h4 i {
    font-size: 1.3rem;
}

/* NEW: General Table Styles (Apply to link orders and potentially other tables) */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table .table-header {
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    display: grid;
    padding-bottom: 10px;
    padding-top: 10px;
}

.data-table .table-row {
    display: grid;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.data-table .table-row:last-child {
    border-bottom: none;
}

.data-table .table-header,
.data-table .table-row {
    grid-template-columns: 1fr 3fr 1fr 1fr 1fr auto;
}

/* Adjusted for link orders */

.amount-credit {
    color: #237804;
    font-weight: 600;
}

.amount-debit {
    color: #cf1322;
    font-weight: 600;
}

.status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    display: inline-block;
}

.status-processing {
    background-color: #e6f0ff;
    color: #0052FF;
}

.status-transit {
    background-color: #f3eaff;
    color: #8a3ffc;
}

.status-delivered {
    background-color: #e6fff8;
    color: #008a75;
}

.status-cancelled {
    background-color: #f7f7f7;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

.text-right {
    text-align: right;
}

.settings-form {
    margin-top: 20px;
}

.settings-form .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.settings-form .form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    background: var(--white);
    color: var(--text-dark);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.settings-form .form-group input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 82, 255, 0.15);
    outline: none;
}

.settings-form .form-group input:disabled {
    opacity: 0.6;
    background: var(--bg-light);
    cursor: not-allowed;
}

.settings-form .form-group-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.settings-form .btn {
    margin-top: 10px;
}

.danger-zone {
    border-color: #ff4d4f;
}

.danger-zone h3 {
    color: #cf1322;
}

.danger-zone-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}


/* --- Order Modal Specific Styles (These override/extend the base modal styles) --- */
.modal-content.large-modal {
    max-width: 700px;
    padding: 30px;
}

.modal-form .form-group {
    margin-bottom: 20px;
}

.modal-form .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.modal-form .weight-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-form .weight-input-group input {
    flex-grow: 1;
}

.modal-form .weight-input-group select {
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    background: var(--white);
    color: var(--text-dark);
}

.modal-form textarea {
    /* FIXED: Textarea styling for modal */
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    background: var(--white);
    color: var(--text-dark);
    resize: vertical;
    min-height: 80px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.modal-form textarea:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 82, 255, 0.15);
    outline: none;
}

.modal-form .file-upload-wrapper {
    position: relative;
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-form .file-upload-wrapper:hover {
    border-color: var(--primary-blue);
    background-color: var(--bg-light);
}

.modal-form .file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.modal-form .file-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1rem;
}

.modal-form .file-label i {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--primary-blue);
}

/* Live Summary Card within Modal */
.modal-form .live-summary-card {
    padding: 20px;
    margin-top: 30px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: none;
}

.modal-form .live-summary-card:hover {
    transform: none;
    box-shadow: none;
}

.modal-form .live-summary-card h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: var(--primary-dark);
}

.modal-form .exchange-rate-display {
    text-align: center;
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.modal-form .exchange-rate-display span {
    font-weight: 600;
    color: var(--primary-dark);
}

.modal-form .cost-breakdown {
    border-top: 1px dashed var(--border-color);
    padding-top: 15px;
    margin-bottom: 15px;
}

.modal-form .summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: var(--text-body);
}

.modal-form .summary-row span:last-child {
    font-weight: 600;
    color: var(--primary-dark);
}

.modal-form .summary-row.total {
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
    margin-top: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.modal-form .summary-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 10px;
}

/* Responsive adjustments for Order Modal */
@media (max-width: 768px) {
    .modal-content.large-modal {
        max-width: 95%;
        padding: 20px;
    }

    .modal-form .form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}


/* --- Mobile Dashboard --- */
.mobile-dashboard-header {
    display: none;
}

.mobile-overlay {
    display: none;
}

@media (max-width: 992px) {
    .mobile-dashboard-header {
        display: flex;
        align-items: center;
        margin-bottom: 20px;
        padding: 0 15px;
    }

    .mobile-dashboard-header .hamburger {
        display: inline-block;
        background: none;
        border: none;
        font-size: 1.5rem;
        margin-right: 15px;
        color: var(--text-dark);
    }

    .mobile-header-title {
        font-size: 1.5rem;
        font-weight: 600;
        color: var(--primary-dark);
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100%;
        z-index: 1002;
        transform: translateX(-100%);
        box-shadow: var(--shadow-lg);
    }

    body.sidebar-open .sidebar {
        transform: translateX(0);
    }

    .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1001;
    }

    body.sidebar-open .mobile-overlay {
        display: block;
    }

    body.sidebar-open .hamburger {
        display: none;
    }

    .dashboard-main {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .dashboard-main {
        padding: 20px;
    }

    .dashboard-header h1 {
        font-size: 2rem;
    }

    .dashboard-grid,
    .settings-form .form-group-grid {
        grid-template-columns: 1fr;
    }

    .danger-zone-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .shipment-item-detailed {
        grid-template-columns: auto 1fr;
        grid-template-areas: "img info" "progress progress" "eta eta";
    }

    .shipment-image {
        grid-area: img;
    }

    .shipment-info {
        grid-area: info;
    }

    .progress-container {
        grid-area: progress;
    }

    .eta {
        grid-area: eta;
        text-align: left;
        margin-top: 10px;
    }
}

/* Add this CSS to your dashboard.css file */

/* Shipping Info Card */
.shipping-info-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid var(--border-light);
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
}

.shipping-info-card h4 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.shipping-modes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.mode-card {
    background: white;
    border: 2px solid var(--border-light);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.mode-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.mode-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.8rem;
    color: white;
}

.mode-icon.air-express {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.mode-icon.air-normal {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.mode-icon.sea {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.mode-card h5 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.mode-duration {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 5px 0;
}

.mode-rate {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin: 10px 0;
}

.mode-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
}

.shipping-note {
    background: rgba(255, 193, 7, 0.1);
    border-left: 4px solid #ffc107;
    padding: 12px 15px;
    margin: 15px 0 0 0;
    font-size: 0.9rem;
    border-radius: 4px;
    line-height: 1.6;
}

/* Screenshot Upload Section */
.screenshot-upload-section {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.file-upload-wrapper {
    flex: 1;
}

.screenshot-preview-container {
    flex: 0 0 200px;
}

.screenshot-preview {
    width: 100%;
    max-width: 200px;
    height: auto;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .shipping-modes-grid {
        grid-template-columns: 1fr;
    }

    .screenshot-upload-section {
        flex-direction: column;
    }

    .screenshot-preview-container {
        flex: 0 0 auto;
        width: 100%;
    }

    .screenshot-preview {
        max-width: 100%;
    }
}

/* Update Live Summary Card */
.live-summary-card .summary-note {
    background: rgba(33, 150, 243, 0.1);
    border-left: 4px solid #2196f3;
    padding: 12px 15px;
    margin-top: 15px;
    font-size: 0.9rem;
    border-radius: 4px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.live-summary-card .summary-note i {
    margin-top: 2px;
}

/* Required field indicator */
.required {
    color: #dc3545;
    font-weight: bold;
    margin-left: 3px;
}


/* Add this CSS to your dashboard.css file */

/* ===== SELECT DROPDOWN STYLING ===== */
select {
    width: 100%;
    padding: 12px 40px 12px 16px;
    border: 2px solid var(--border-light, #dee2e6);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-dark, #212529);
    background-color: white;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

select:hover {
    border-color: var(--primary, #007bff);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.1);
}

select:focus {
    outline: none;
    border-color: var(--primary, #007bff);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

select:disabled {
    background-color: #f8f9fa;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Option styling (limited browser support) */
select option {
    padding: 10px;
    background-color: white;
    color: var(--text-dark, #212529);
}

select option:hover {
    background-color: var(--primary, #007bff);
    color: white;
}

/* Shipping Mode specific select */
#order-shipping-mode {
    font-weight: 500;
}

#order-shipping-mode option[value=""] {
    color: #6c757d;
    font-style: italic;
}

/* ===== SHIPPING INFO CARD ===== */
.shipping-info-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid var(--border-light, #dee2e6);
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.shipping-info-card h4 {
    color: var(--primary, #007bff);
    margin-bottom: 20px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.shipping-info-card h4 i {
    font-size: 1.2rem;
}

.shipping-modes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.mode-card {
    background: white;
    border: 2px solid var(--border-light, #dee2e6);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: default;
}

.mode-card:hover {
    border-color: var(--primary, #007bff);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.mode-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.8rem;
    color: white;
}

.mode-icon.air-express {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.mode-icon.air-normal {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.mode-icon.sea {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.mode-card h5 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-dark, #212529);
    font-weight: 600;
}

.mode-duration {
    font-size: 0.9rem;
    color: var(--text-muted, #6c757d);
    margin: 5px 0;
}

.mode-rate {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary, #007bff);
    margin: 10px 0;
}

.mode-desc {
    font-size: 0.85rem;
    color: var(--text-muted, #6c757d);
    font-style: italic;
}

.shipping-note {
    background: rgba(255, 193, 7, 0.1);
    border-left: 4px solid #ffc107;
    padding: 12px 15px;
    margin: 15px 0 0 0;
    font-size: 0.9rem;
    border-radius: 4px;
    line-height: 1.6;
}

/* ===== SCREENSHOT UPLOAD SECTION ===== */
.screenshot-upload-section {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.file-upload-wrapper {
    flex: 1;
}

.screenshot-preview-container {
    flex: 0 0 200px;
}

.screenshot-preview {
    width: 100%;
    max-width: 200px;
    height: auto;
    max-height: 200px;
    border: 2px solid var(--border-light, #dee2e6);
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ===== LIVE SUMMARY CARD UPDATES ===== */
.live-summary-card .summary-note {
    background: rgba(33, 150, 243, 0.1);
    border-left: 4px solid #2196f3;
    padding: 12px 15px;
    margin-top: 15px;
    font-size: 0.9rem;
    border-radius: 4px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.6;
}

.live-summary-card .summary-note i {
    margin-top: 2px;
    flex-shrink: 0;
}

/* ===== SHIPPING MODE BADGE (for order details) ===== */
.shipping-mode-badge {
    display: inline-block;
    padding: 6px 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* ===== REQUIRED FIELD INDICATOR ===== */
.required {
    color: #dc3545;
    font-weight: bold;
    margin-left: 3px;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
    .shipping-modes-grid {
        grid-template-columns: 1fr;
    }

    .screenshot-upload-section {
        flex-direction: column;
    }

    .screenshot-preview-container {
        flex: 0 0 auto;
        width: 100%;
    }

    .screenshot-preview {
        max-width: 100%;
    }

    select {
        padding: 10px 35px 10px 12px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .mode-card {
        padding: 15px;
    }

    .mode-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .mode-card h5 {
        font-size: 1rem;
    }

    .mode-rate {
        font-size: 1.1rem;
    }
}

/* Add this CSS to both dashboard.css and admin.css */

/* Screenshot Display in Order Details */
.screenshot-display {
    margin-top: 10px;
}

.order-screenshot-preview {
    max-width: 100%;
    width: auto;
    max-height: 400px;
    border: 2px solid var(--border-light, #dee2e6);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: block;
    margin-bottom: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.order-screenshot-preview:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#detail-screenshot-container {
    margin-top: 10px;
}

#detail-screenshot-container .order-screenshot-preview {
    margin-bottom: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .order-screenshot-preview {
        max-height: 300px;
    }
}

/* Add this to your dashboard.css and admin.css */

/* ===== ANNOUNCEMENTS OVERLAY ===== */
.announcements-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.announcements-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===== ANNOUNCEMENTS CONTAINER ===== */
.announcements-container {
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.announcements-overlay.active .announcements-container {
    transform: scale(1) translateY(0);
}

/* ===== ANNOUNCEMENT CARD ===== */
.announcement-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    padding: 0;
    margin-bottom: 16px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    position: relative;
    animation: slideInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation-fill-mode: backwards;
}

.announcement-card:nth-child(1) {
    animation-delay: 0.1s;
}

.announcement-card:nth-child(2) {
    animation-delay: 0.2s;
}

.announcement-card:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Color bar on top */
.announcement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--announcement-color), var(--announcement-color-light));
}

/* Type-based colors */
.announcement-card.type-info {
    --announcement-color: #2196F3;
    --announcement-color-light: #64B5F6;
    --announcement-bg: rgba(33, 150, 243, 0.1);
}

.announcement-card.type-success {
    --announcement-color: #4CAF50;
    --announcement-color-light: #81C784;
    --announcement-bg: rgba(76, 175, 80, 0.1);
}

.announcement-card.type-warning {
    --announcement-color: #FF9800;
    --announcement-color-light: #FFB74D;
    --announcement-bg: rgba(255, 152, 0, 0.1);
}

.announcement-card.type-critical {
    --announcement-color: #F44336;
    --announcement-color-light: #E57373;
    --announcement-bg: rgba(244, 67, 54, 0.1);
}

.announcement-card.type-promo {
    --announcement-color: #9C27B0;
    --announcement-color-light: #BA68C8;
    --announcement-bg: rgba(156, 39, 176, 0.1);
}

/* ===== CARD HEADER ===== */
.announcement-header {
    padding: 24px 24px 16px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.announcement-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--announcement-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.announcement-title-area {
    flex: 1;
    min-width: 0;
}

.announcement-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark, #212529);
    margin: 0 0 4px 0;
    line-height: 1.4;
}

.announcement-meta {
    font-size: 0.8rem;
    color: var(--text-muted, #6c757d);
    display: flex;
    align-items: center;
    gap: 8px;
}

.announcement-priority {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: var(--announcement-bg);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--announcement-color);
}

.announcement-close {
    background: rgba(0, 0, 0, 0.05);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted, #6c757d);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.announcement-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-dark, #212529);
    transform: rotate(90deg);
}

/* ===== CARD BODY ===== */
.announcement-body {
    padding: 0 24px 24px;
}

.announcement-message {
    color: var(--text-dark, #212529);
    line-height: 1.6;
    margin: 0 0 16px 0;
    font-size: 0.95rem;
}

.announcement-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--announcement-color);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.announcement-action:hover {
    background: var(--announcement-color-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ===== DISMISS ALL BUTTON ===== */
.announcements-footer {
    text-align: center;
    padding: 16px;
}

.dismiss-all-btn {
    background: white;
    color: var(--text-dark, #212529);
    border: 2px solid var(--border-light, #dee2e6);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dismiss-all-btn:hover {
    background: var(--border-light, #dee2e6);
    transform: translateY(-2px);
}

/* ===== EMPTY STATE ===== */
.announcements-empty {
    background: white;
    border-radius: 16px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.announcements-empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.announcements-empty h3 {
    color: var(--text-dark, #212529);
    margin: 0 0 8px 0;
}

.announcements-empty p {
    color: var(--text-muted, #6c757d);
    margin: 0;
}

/* ===== NOTIFICATION BADGE ===== */
.announcement-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #F44336;
    color: white;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 20px;
    text-align: center;
    animation: pulse 2s infinite;
    box-shadow: 0 2px 8px rgba(244, 67, 54, 0.4);
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

@keyframes slideOutRight {
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 576px) {
    .announcements-container {
        max-width: 100%;
    }

    .announcement-card {
        margin-bottom: 12px;
        border-radius: 12px;
    }

    .announcement-header {
        padding: 20px 20px 12px;
        gap: 12px;
    }

    .announcement-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .announcement-title {
        font-size: 1.1rem;
    }

    .announcement-body {
        padding: 0 20px 20px;
    }
}

/* ===== SCROLLBAR STYLING ===== */
.announcements-container::-webkit-scrollbar {
    width: 8px;
}

.announcements-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.announcements-container::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.announcements-container::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}


/* --- NEW: Pay Supplier Page Styles (in Dashboard) --- */

.calculator-main-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 30px;
    /* Reduced gap for dashboard context */
    align-items: flex-start;
}

/* Calculator Card Styles */
.calculator-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    position: sticky;
    top: 100px;
    /* Adjust sticky top position for dashboard */
}

.calculator-card h3 {
    font-size: 1.5rem;
    /* Smaller heading for dashboard */
    color: var(--primary-dark);
    margin-bottom: 20px;
    font-weight: 600;
    text-align: center;
}

.calculator-card .form-group {
    margin-bottom: 15px;
}

.calculator-card label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.calculator-card input[type="number"],
.calculator-card input[type="text"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.calculator-card input[type="number"]:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 82, 255, 0.15);
    outline: none;
}

.calculator-card input[type="text"][disabled] {
    background-color: var(--bg-light);
    color: var(--text-muted);
    font-weight: 500;
    text-align: center;
}

.calculator-result {
    background: var(--primary-blue);
    color: var(--white);
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
    text-align: center;
}

.calculator-result .result-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.8;
    margin-bottom: 5px;
}

.calculator-result .result-amount {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
}

.calculator-card .btn-primary {
    width: 100%;
    margin-top: 20px;
    padding: 14px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.calculator-card .btn-primary:disabled {
    background: var(--text-muted);
    opacity: 0.7;
    box-shadow: none;
    cursor: not-allowed;
}

.calculator-card .btn-primary i {
    font-size: 1.2rem;
}

/* Pricing Guide Card Styles */
.pricing-guide-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.pricing-guide-card h3 {
    font-size: 1.5rem;
    /* Smaller heading for dashboard */
    color: var(--primary-dark);
    margin-bottom: 10px;
    font-weight: 600;
}

.pricing-guide-card .pricing-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.pricing-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.pricing-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

.pricing-list li.active-rate {
    background-color: #e6f0ff;
    /* Light blue background for active rate */
}

.pricing-list li:last-child {
    border-bottom: none;
}

.pricing-list li:nth-child(even):not(.active-rate) {
    background-color: var(--bg-light);
}

.pricing-list li span {
    font-size: 1rem;
    color: var(--text-body);
}

.pricing-list li strong {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-blue);
    background-color: var(--white);
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.pricing-list li.active-rate strong {
    background-color: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

.pricing-notes {
    margin-top: 20px;
    background: #fffbe6;
    border: 1px solid #ffe58f;
    border-radius: 8px;
    padding: 15px;
}

.pricing-notes h4 {
    color: #d46b08;
    margin-bottom: 10px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-notes p {
    font-size: 0.9rem;
    color: var(--text-body);
    margin-bottom: 8px;
    line-height: 1.6;
}

.pricing-notes p:last-child {
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 992px) {
    .calculator-main-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .calculator-card {
        order: -1;
        /* Put calculator on top on mobile */
        position: static;
        /* Unstick it */
    }
}

@media (max-width: 768px) {

    .calculator-card,
    .pricing-guide-card {
        padding: 20px;
    }

    .calculator-card h3 {
        font-size: 1.5rem;
    }

    .calculator-result .result-amount {
        font-size: 1.8rem;
    }

    .pricing-guide-card h3 {
        font-size: 1.3rem;
    }

    .pricing-list li {
        padding: 12px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .pricing-list li strong {
        align-self: flex-end;
    }
}

/* --- Action Button Styles for Tables --- */
.data-table .table-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    /* Aligns buttons to the right */
    gap: 8px;
    /* Adds space between buttons */
}

/* Style for the small red delete button */
.btn-icon.btn-danger {
    color: var(--error-red, #ef4444);
    border-color: #fecaca;
    background-color: #fef2f2;
}

.btn-icon.btn-danger:hover {
    background-color: var(--error-red, #ef4444);
    border-color: var(--error-red, #ef4444);
    color: var(--white);
}

/* Mobile adjustments for table actions */
@media (max-width: 992px) {
    .data-table .table-row>div:last-child {
        justify-content: flex-end;
        /* Aligns buttons to the right on mobile */
    }

    .data-table .table-actions {
        justify-content: flex-end;
    }
}

/* --- Action Button Styles for Tables --- */
.data-table .table-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    /* Aligns buttons to the right */
    gap: 8px;
    /* Adds space between buttons */
}

/* Style for the small red delete button */
.btn-icon.btn-danger {
    color: var(--error-red, #ef4444);
    border-color: #fecaca;
    background-color: #fef2f2;
}

.btn-icon.btn-danger:hover {
    background-color: var(--error-red, #ef4444);
    border-color: var(--error-red, #ef4444);
    color: var(--white);
}

/* Mobile adjustments for table actions */
@media (max-width: 992px) {
    .data-table .table-row>div:last-child {
        justify-content: flex-end;
        /* Aligns buttons to the right on mobile */
    }

    .data-table .table-actions {
        justify-content: flex-end;
    }
}

.settings-form .form-group input,
.settings-form .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    background: var(--white);
    color: var(--text-dark);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.settings-form .form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.settings-form .form-group input:focus,
.settings-form .form-group textarea:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 82, 255, 0.15);
    outline: none;
}

.btn-danger {
    background-color: #fef2f2;
    border-color: #fecaca;
    color: #dc3545;
}

.btn-danger:hover {
    background-color: #dc3545;
    color: var(--white);
    border-color: #dc3545;
    transform: translateY(-2px);
}