/* Smart Worker Card - Core Design System */
:root {
    --brand-primary: #00abf2;
    --brand-secondary: #00367d;
    --brand-dark: #00183b;
    --brand-light: #f0f8ff;
    --brand-text-dark: #1e293b;
    --brand-text-light: #f8fafc;
    --brand-danger: #ea580c;
    --brand-success: #16a34a;
}

/* Enforce Strict Zero Border-Radius Globally on All Elements */
* {
    border-radius: 0px !important;
    border-top-left-radius: 0px !important;
    border-top-right-radius: 0px !important;
    border-bottom-left-radius: 0px !important;
    border-bottom-right-radius: 0px !important;
}

/* Base Reset & Fonts */
body {
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--brand-text-dark);
    background-color: #fafbfc;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Scrollbar styling - sharp */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: var(--brand-secondary);
}

/* Typography & Layouts */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 800;
    color: var(--brand-secondary);
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.text-brand-primary {
    color: var(--brand-primary) !important;
}

.text-brand-secondary {
    color: var(--brand-secondary) !important;
}

.bg-brand-primary {
    background-color: var(--brand-primary) !important;
}

.bg-brand-secondary {
    background-color: var(--brand-secondary) !important;
}

.bg-brand-dark {
    background-color: var(--brand-dark) !important;
}

.bg-brand-light {
    background-color: var(--brand-light) !important;
}

/* Custom Sharp Flat Buttons */
.btn-sharp-primary {
    background-color: var(--brand-primary);
    color: #ffffff;
    border: 2px solid var(--brand-primary);
    padding: 10px 24px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-sharp-primary:hover {
    background-color: var(--brand-secondary);
    border-color: var(--brand-secondary);
    color: #ffffff;
    transform: translateY(-1px);
}

.btn-sharp-secondary {
    background-color: var(--brand-secondary);
    color: #ffffff;
    border: 2px solid var(--brand-secondary);
    padding: 10px 24px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-sharp-secondary:hover {
    background-color: transparent;
    color: var(--brand-secondary);
    transform: translateY(-1px);
}

.btn-sharp-outline {
    background-color: transparent;
    color: #1e293b !important;
    border: 2px solid #1e293b !important;
    padding: 10px 24px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-sharp-outline:hover {
    background-color: #1e293b !important;
    border-color: #1e293b !important;
    color: #ffffff !important;
}

/* Sharp Cards with Flat Shadow */
.card-sharp {
    background-color: #ffffff;
    border: 2px solid var(--brand-secondary);
    box-shadow: 0 8px 20px rgba(0, 54, 125, 0.05);
    padding: 24px;
    margin-bottom: 24px;
    transition: all 0.2s ease;
}

.card-sharp-hover:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 54, 125, 0.08);
}

.card-sharp-primary {
    border-color: var(--brand-primary);
    box-shadow: 0 8px 20px rgba(0, 171, 242, 0.05);
}

/* Sharp Forms & Inputs */
.form-sharp-control {
    width: 100%;
    padding: 12px;
    border: 2px solid #cbd5e1;
    font-family: inherit;
    font-size: 1rem;
    color: var(--brand-text-dark);
    background-color: #ffffff;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.form-sharp-control:focus {
    outline: none;
    border-color: var(--brand-secondary);
    box-shadow: 0 0 0 3px rgba(0, 171, 242, 0.15);
}

/* Navigation - Sharp & Premium */
.nav-sharp {
    background-color: #fcf9f2 !important;
    border-bottom: 3px solid var(--brand-secondary) !important;
    padding: 12px 0px;
    position: sticky;
    top: 0;
    z-index: 1040;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.nav-brand {
    color: var(--brand-dark) !important;
    font-size: 1.5rem;
    font-weight: 900;
    text-decoration: none;
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-brand span {
    color: var(--brand-secondary) !important;
}

.nav-menu {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item a {
    color: #4b5563 !important;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    transition: color 0.2s ease, border-color 0.2s ease;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
}

.nav-item a:hover,
.nav-item.active a {
    color: var(--brand-secondary) !important;
    border-bottom: 2px solid var(--brand-secondary) !important;
    padding-bottom: 4px;
}

/* Responsive Smart Worker Card Layouts (Dual Sided) */
.smart-card-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin: 30px 0;
}

.smart-card-front,
.smart-card-back {
    width: 480px;
    height: 300px;
    background-color: #ffffff;
    border: 6px solid var(--brand-secondary);
    box-sizing: border-box;
    position: relative;
    box-shadow: 0 15px 35px rgba(0, 54, 125, 0.1);
    overflow: hidden;
}

/* Card Elements matching reference precisely but with border-radius: 0 */
.card-header-accent {
    background: linear-gradient(135deg, var(--brand-secondary) 70%, var(--brand-primary) 100%);
    color: #ffffff;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 55px;
    box-sizing: border-box;
}

.card-title-main {
    font-weight: 900;
    font-size: 1.25rem;
    letter-spacing: 0.02em;
    margin: 0;
    color: #ffffff !important;
}

.card-subtitle-main {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--brand-primary);
    margin: 0;
}

.card-body-content {
    display: flex;
    padding: 15px 20px;
    height: 195px;
    box-sizing: border-box;
}

.card-photo-box {
    width: 110px;
    height: 135px;
    border: 3px solid var(--brand-primary);
    background-color: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.card-photo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-details-box {
    flex: 1;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-detail-row {
    font-size: 0.8rem;
    margin-bottom: 5px;
    color: #334155;
}

.card-detail-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 700;
}

.card-detail-val {
    font-weight: 800;
    color: var(--brand-secondary);
}

.card-qr-box {
    width: 100px;
    height: 100px;
    border: 2px solid var(--brand-secondary);
    padding: 5px;
    background-color: #ffffff;
    align-self: center;
}

.card-qr-box svg,
.card-qr-box img {
    width: 100%;
    height: 100%;
}

.card-footer-accent {
    background-color: var(--brand-secondary);
    color: #ffffff;
    height: 50px;
    box-sizing: border-box;
    padding: 5px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.7rem;
    border-top: 3px solid var(--brand-primary);
}

/* Card Back Design */
.card-back-benefits {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
    padding: 15px;
    text-align: center;
    height: 100px;
    box-sizing: border-box;
}

.card-back-benefit-item {
    font-size: 0.5rem;
    font-weight: 700;
    color: var(--brand-secondary);
}

.card-back-benefit-item i {
    font-size: 1.1rem;
    color: var(--brand-primary);
    display: block;
    margin-bottom: 3px;
}

.card-back-instructions {
    padding: 0px 20px;
    font-size: 0.65rem;
    color: #334155;
    height: 95px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-back-instructions ul {
    margin: 5px 0 0 15px;
    padding: 0;
}

.card-back-instructions li {
    margin-bottom: 2px;
}

/* Responsive Card wrapping for phones */
@media (max-width: 520px) {

    .smart-card-front,
    .smart-card-back {
        width: 100%;
        max-width: 320px;
        height: auto;
        min-height: 480px;
    }

    .card-body-content {
        flex-direction: column;
        height: auto;
        align-items: center;
        gap: 15px;
    }

    .card-qr-box {
        margin-top: 10px;
    }

    .smart-card-back {
        min-height: auto;
        height: auto;
    }

    .card-back-benefits {
        grid-template-columns: repeat(3, 1fr);
        height: auto;
    }

    .card-back-instructions {
        height: auto;
        padding: 15px 20px;
    }
}

/* Alert Notification badge */
.badge-sharp {
    padding: 4px 10px;
    font-weight: 800;
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #ffffff;
    display: inline-block;
}

.badge-sharp-success {
    background-color: var(--brand-success);
}

.badge-sharp-danger {
    background-color: var(--brand-danger);
}

.badge-sharp-primary {
    background-color: var(--brand-primary);
}

/* Landing Hero Graphic flat style */
.hero-flat-image {
    border: 8px solid var(--brand-secondary);
    box-shadow: 12px 12px 0px var(--brand-primary);
    background-color: #ffffff;
}

/* Footer - Clean and Sharp */
.footer-sharp {
    border-top: 6px solid var(--brand-primary);
    padding: 0;
    margin: 0;
}

.footer-sharp .footer-main {
    background-color: #fcf9f2; /* Cream background */
    color: #1e293b; /* Dark slate text */
}

.footer-sharp .footer-bottom {
    background-color: #ffffff; /* White background */
    color: #1e293b; /* Dark slate text */
    border-top: 1px solid rgba(0, 54, 125, 0.08) !important;
}

.footer-sharp h5 {
    color: var(--brand-secondary) !important; /* Brand dark blue */
    font-weight: 800;
    margin-bottom: 20px;
}

.footer-sharp a {
    color: #334155; /* Slate link color */
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-sharp a:hover {
    color: var(--brand-primary) !important; /* Brand blue on hover */
}

.footer-sharp .text-secondary {
    color: #475569 !important; /* Proper text color fallback */
}

/* PWA Dashboard Styles */
.dashboard-layout {
    display: flex;
    gap: 24px;
    background-color: transparent;
    min-height: auto;
}

.dashboard-sidebar {
    width: 280px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex-shrink: 0;
    position: sticky;
    top: 113px;
    /* 89px sticky header + 24px gutter */
    height: fit-content;
}

.dashboard-sidebar-profile-card {
    background-color: #ffffff;
    border: 3px solid var(--brand-secondary);
    box-shadow: 6px 6px 0px rgba(0, 54, 125, 0.15);
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transition: all 0.2s ease;
}

.dashboard-sidebar-profile-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0px rgba(0, 54, 125, 0.25);
}

.dashboard-sidebar-profile-card .profile-img-wrapper {
    width: 80px;
    height: 80px;
    border: 3px solid var(--brand-primary);
    overflow: hidden;
    margin-bottom: 12px;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 4px 4px 0px var(--brand-secondary);
}

.dashboard-sidebar-profile-card .profile-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dashboard-sidebar-profile-card .status-dot-pulse {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50% !important;
    border: 2px solid #ffffff;
    z-index: 5;
}

.status-dot-active {
    background-color: var(--brand-success);
    box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.4);
}

.status-dot-expired {
    background-color: var(--brand-danger);
    box-shadow: 0 0 0 2px rgba(234, 88, 12, 0.4);
}

.dashboard-sidebar-profile-card .profile-name {
    color: var(--brand-secondary);
    font-size: 1.2rem;
    font-weight: 900;
    margin: 0;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    width: 100%;
    text-align: center;
}

.dashboard-sidebar-profile-card .profile-id-badge {
    background-color: var(--brand-secondary);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 12px;
    margin-top: 8px;
    letter-spacing: 0.08em;
    border: 1px solid var(--brand-primary);
    display: inline-block;
    box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.2);
}

.dashboard-sidebar-menu-card {
    background-color: #ffffff;
    border: 3px solid var(--brand-secondary);
    box-shadow: 6px 6px 0px rgba(0, 54, 125, 0.15);
    padding: 16px;
}

.dashboard-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dashboard-menu-item {
    width: 100%;
}

.dashboard-menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--brand-text-dark);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border: 2px solid transparent;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}

.dashboard-menu-link i {
    width: 20px;
    font-size: 1.1rem;
    text-align: center;
    color: var(--brand-primary);
}

.dashboard-menu-link:hover {
    color: #ffffff;
    background-color: rgba(0, 171, 242, 0.1);
    border-color: var(--brand-primary);
}

.dashboard-menu-link.active {
    color: #ffffff;
    background-color: var(--brand-secondary);
    border-color: var(--brand-primary);
    box-shadow: 4px 4px 0px var(--brand-primary);
    transform: translate(-2px, -2px);
}

.dashboard-content-panel {
    flex-grow: 1;
    padding: 0;
    overflow-y: visible;
    max-width: calc(100% - 304px);
    /* 280px sidebar + 24px gap */
}

/* Sections switching with animation */
.dashboard-section {
    display: none;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

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

/* Bottom Nav for Mobile PWA Experience */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background-color: var(--brand-dark);
    border-top: 3px solid var(--brand-primary);
    z-index: 1030;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.15);
}

.mobile-bottom-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    width: 20%;
    height: 100%;
    transition: all 0.2s ease;
}

.mobile-bottom-nav-link i {
    font-size: 1.25rem;
    margin-bottom: 3px;
    color: #cbd5e1;
}

.mobile-bottom-nav-link:hover,
.mobile-bottom-nav-link.active {
    color: var(--brand-primary);
}

.mobile-bottom-nav-link.active i {
    color: var(--brand-primary);
    transform: scale(1.15);
}

.dashboard-mobile-header {
    display: none;
    background-color: var(--brand-secondary);
    border-bottom: 2px solid var(--brand-primary);
    padding: 12px 20px;
    justify-content: space-between;
    align-items: center;
}

.dashboard-mobile-header .header-title {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 900;
    margin: 0;
    letter-spacing: 0.02em;
}

/* Responsiveness overrides */
@media (max-width: 767px) {
    .dashboard-layout {
        flex-direction: column;
        min-height: calc(100vh - 125px);
        /* Account for header and bottom nav */
        padding-bottom: 70px;
        /* Space for bottom nav */
    }

    .dashboard-sidebar {
        display: none;
        /* Hide sidebar on mobile */
    }

    .mobile-bottom-nav {
        display: flex;
        /* Show bottom nav on mobile */
    }

    .dashboard-mobile-header {
        display: flex;
        /* Show small helper mobile header */
    }

    .dashboard-content-panel {
        padding: 20px 15px;
    }

    /* Make the smart card wrapper more responsive and stack properly */
    .smart-card-wrapper {
        margin: 15px 0;
        gap: 20px;
    }
}


/* PWA Dashboard Styles */
.dashboard-layout {
    display: flex;
    gap: 24px;
    background-color: transparent;
    min-height: auto;
}

.dashboard-sidebar {
    width: 280px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex-shrink: 0;
    position: sticky;
    top: 113px;
    /* 89px sticky header + 24px gutter */
    height: fit-content;
}

.dashboard-sidebar-profile-card {
    background-color: #ffffff;
    border: 3px solid var(--brand-secondary);
    box-shadow: 6px 6px 0px rgba(0, 54, 125, 0.15);
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transition: all 0.2s ease;
}

.dashboard-sidebar-profile-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0px rgba(0, 54, 125, 0.25);
}

.dashboard-sidebar-profile-card .profile-img-wrapper {
    width: 80px;
    height: 80px;
    border: 3px solid var(--brand-primary);
    overflow: hidden;
    margin-bottom: 12px;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 4px 4px 0px var(--brand-secondary);
}

.dashboard-sidebar-profile-card .profile-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dashboard-sidebar-profile-card .status-dot-pulse {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50% !important;
    border: 2px solid #ffffff;
    z-index: 5;
}

.status-dot-active {
    background-color: var(--brand-success);
    box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.4);
}

.status-dot-expired {
    background-color: var(--brand-danger);
    box-shadow: 0 0 0 2px rgba(234, 88, 12, 0.4);
}

.dashboard-sidebar-profile-card .profile-name {
    color: var(--brand-secondary);
    font-size: 1.2rem;
    font-weight: 900;
    margin: 0;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    width: 100%;
    text-align: center;
}

.dashboard-sidebar-profile-card .profile-id-badge {
    background-color: var(--brand-secondary);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 12px;
    margin-top: 8px;
    letter-spacing: 0.08em;
    border: 1px solid var(--brand-primary);
    display: inline-block;
    box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.2);
}

.dashboard-sidebar-menu-card {
    background-color: #ffffff;
    border: 3px solid var(--brand-secondary);
    box-shadow: 6px 6px 0px rgba(0, 54, 125, 0.15);
    padding: 16px;
}

.dashboard-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dashboard-menu-item {
    width: 100%;
}

.dashboard-menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--brand-text-dark);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border: 2px solid transparent;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}

.dashboard-menu-link i {
    width: 20px;
    font-size: 1.1rem;
    text-align: center;
    color: var(--brand-primary);
}

.dashboard-menu-link:hover {
    color: #ffffff;
    background-color: rgba(0, 171, 242, 0.1);
    border-color: var(--brand-primary);
}

.dashboard-menu-link.active {
    color: #ffffff;
    background-color: var(--brand-secondary);
    border-color: var(--brand-primary);
    box-shadow: 4px 4px 0px var(--brand-primary);
    transform: translate(-2px, -2px);
}

.dashboard-content-panel {
    flex-grow: 1;
    padding: 0;
    overflow-y: visible;
    max-width: calc(100% - 304px);
    /* 280px sidebar + 24px gap */
}

/* Sections switching with animation */
.dashboard-section {
    display: none;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

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

/* Bottom Nav for Mobile PWA Experience */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background-color: var(--brand-dark);
    border-top: 3px solid var(--brand-primary);
    z-index: 1030;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.15);
}

.mobile-bottom-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    width: 20%;
    height: 100%;
    transition: all 0.2s ease;
}

.mobile-bottom-nav-link i {
    font-size: 1.25rem;
    margin-bottom: 3px;
    color: #cbd5e1;
}

.mobile-bottom-nav-link:hover,
.mobile-bottom-nav-link.active {
    color: var(--brand-primary);
}

.mobile-bottom-nav-link.active i {
    color: var(--brand-primary);
    transform: scale(1.15);
}

.dashboard-mobile-header {
    display: none;
    background-color: var(--brand-secondary);
    border-bottom: 2px solid var(--brand-primary);
    padding: 12px 20px;
    justify-content: space-between;
    align-items: center;
}

.dashboard-mobile-header .header-title {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 900;
    margin: 0;
    letter-spacing: 0.02em;
}

/* Responsiveness overrides */
@media (max-width: 767px) {
    .dashboard-layout {
        flex-direction: column;
        min-height: calc(100vh - 125px);
        /* Account for header and bottom nav */
        padding-bottom: 70px;
        /* Space for bottom nav */
    }

    .dashboard-sidebar {
        display: none;
        /* Hide sidebar on mobile */
    }

    .mobile-bottom-nav {
        display: flex;
        /* Show bottom nav on mobile */
    }

    .dashboard-mobile-header {
        display: flex;
        /* Show small helper mobile header */
    }

    .dashboard-content-panel {
        padding: 20px 15px;
    }

    /* Make the smart card wrapper more responsive and stack properly */
    .smart-card-wrapper {
        margin: 15px 0;
        gap: 20px;
    }
}


/* PWA Dashboard Styles */
.dashboard-layout {
    display: flex;
    gap: 24px;
    background-color: transparent;
    min-height: auto;
}

.dashboard-sidebar {
    width: 280px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex-shrink: 0;
    position: sticky;
    top: 113px;
    /* 89px sticky header + 24px gutter */
    height: fit-content;
}

.dashboard-sidebar-profile-card {
    background-color: #ffffff;
    border: 3px solid var(--brand-secondary);
    box-shadow: 6px 6px 0px rgba(0, 54, 125, 0.15);
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transition: all 0.2s ease;
}

.dashboard-sidebar-profile-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0px rgba(0, 54, 125, 0.25);
}

.dashboard-sidebar-profile-card .profile-img-wrapper {
    width: 80px;
    height: 80px;
    border: 3px solid var(--brand-primary);
    overflow: hidden;
    margin-bottom: 12px;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 4px 4px 0px var(--brand-secondary);
}

.dashboard-sidebar-profile-card .profile-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dashboard-sidebar-profile-card .status-dot-pulse {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50% !important;
    border: 2px solid #ffffff;
    z-index: 5;
}

.status-dot-active {
    background-color: var(--brand-success);
    box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.4);
}

.status-dot-expired {
    background-color: var(--brand-danger);
    box-shadow: 0 0 0 2px rgba(234, 88, 12, 0.4);
}

.dashboard-sidebar-profile-card .profile-name {
    color: var(--brand-secondary);
    font-size: 1.2rem;
    font-weight: 900;
    margin: 0;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    width: 100%;
    text-align: center;
}

.dashboard-sidebar-profile-card .profile-id-badge {
    background-color: var(--brand-secondary);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 12px;
    margin-top: 8px;
    letter-spacing: 0.08em;
    border: 1px solid var(--brand-primary);
    display: inline-block;
    box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.2);
}

.dashboard-sidebar-menu-card {
    background-color: #ffffff;
    border: 3px solid var(--brand-secondary);
    box-shadow: 6px 6px 0px rgba(0, 54, 125, 0.15);
    padding: 16px;
}

.dashboard-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dashboard-menu-item {
    width: 100%;
}

.dashboard-menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--brand-text-dark);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border: 2px solid transparent;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}

.dashboard-menu-link i {
    width: 20px;
    font-size: 1.1rem;
    text-align: center;
    color: var(--brand-primary);
}

.dashboard-menu-link:hover {
    color: #ffffff;
    background-color: rgba(0, 171, 242, 0.1);
    border-color: var(--brand-primary);
}

.dashboard-menu-link.active {
    color: #ffffff;
    background-color: var(--brand-secondary);
    border-color: var(--brand-primary);
    box-shadow: 4px 4px 0px var(--brand-primary);
    transform: translate(-2px, -2px);
}

.dashboard-content-panel {
    flex-grow: 1;
    padding: 0;
    overflow-y: visible;
    max-width: calc(100% - 304px);
    /* 280px sidebar + 24px gap */
}

/* Sections switching with animation */
.dashboard-section {
    display: none;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

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

/* Bottom Nav for Mobile PWA Experience */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background-color: var(--brand-dark);
    border-top: 3px solid var(--brand-primary);
    z-index: 1030;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.15);
}

.mobile-bottom-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    width: 20%;
    height: 100%;
    transition: all 0.2s ease;
}

.mobile-bottom-nav-link i {
    font-size: 1.25rem;
    margin-bottom: 3px;
    color: #cbd5e1;
}

.mobile-bottom-nav-link:hover,
.mobile-bottom-nav-link.active {
    color: var(--brand-primary);
}

.mobile-bottom-nav-link.active i {
    color: var(--brand-primary);
    transform: scale(1.15);
}

.dashboard-mobile-header {
    display: none;
    background-color: var(--brand-secondary);
    border-bottom: 2px solid var(--brand-primary);
    padding: 12px 20px;
    justify-content: space-between;
    align-items: center;
}

.dashboard-mobile-header .header-title {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 900;
    margin: 0;
    letter-spacing: 0.02em;
}

/* Responsiveness overrides */
@media (max-width: 767px) {
    .dashboard-layout {
        flex-direction: column;
        min-height: calc(100vh - 125px);
        /* Account for header and bottom nav */
        padding-bottom: 70px;
        /* Space for bottom nav */
    }

    .dashboard-sidebar {
        display: none;
        /* Hide sidebar on mobile */
    }

    .mobile-bottom-nav {
        display: flex;
        /* Show bottom nav on mobile */
    }

    .dashboard-mobile-header {
        display: flex;
        /* Show small helper mobile header */
    }

    .dashboard-content-panel {
        padding: 20px 15px;
    }

    /* Make the smart card wrapper more responsive and stack properly */
    .smart-card-wrapper {
        margin: 15px 0;
        gap: 20px;
    }
}





/* LinkedIn Pure Style System for Worker Dashboard */
.dashboard-layout {
    display: flex;
    gap: 24px;
    background-color: #f3f2ef !important;
    min-height: auto;
    padding-top: 24px;
}

.dashboard-sidebar {
    width: 225px;
    /* LinkedIn narrow sidebar width */
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
    position: sticky;
    top: 113px;
    /* 89px sticky header + 24px margin */
    height: fit-content;
}

.dashboard-sidebar-profile-card {
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 10px !important;
    /* Rounded corners like LinkedIn */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.2s ease;
}

.dashboard-sidebar-profile-card:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08) !important;
}

.profile-card-banner {
    width: 100%;
    height: 56px;
    background: linear-gradient(135deg, #a0b2c6 0%, #cbd5e1 100%);
    border-bottom: 1px solid #cbd5e1 !important;
}

.dashboard-sidebar-profile-card .profile-img-wrapper {
    width: 72px !important;
    height: 72px !important;
    border: 2px solid #ffffff !important;
    border-radius: 50% !important;
    /* Circular like LinkedIn */
    overflow: hidden !important;
    margin-top: -36px !important;
    /* Overlap banner */
    background-color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
}

.dashboard-sidebar-profile-card .profile-img-wrapper img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
}

.dashboard-sidebar-profile-card .status-dot-pulse {
    position: absolute !important;
    bottom: 2px !important;
    right: 2px !important;
    width: 12px !important;
    height: 12px !important;
    border-radius: 50% !important;
    border: 2px solid #ffffff !important;
    z-index: 5 !important;
}

.dashboard-sidebar-profile-card .profile-name {
    color: rgba(0, 0, 0, 0.9) !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    margin: 12px 0 2px 0 !important;
    line-height: 1.2 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    width: 100% !important;
    text-align: center !important;
    font-family: inherit !important;
    text-shadow: none !important;
}

.profile-card-headline {
    font-size: 0.75rem !important;
    color: rgba(0, 0, 0, 0.6) !important;
    text-align: center !important;
    padding: 0 12px 12px 12px !important;
    border-bottom: 1px solid #e2e8f0 !important;
    width: 100% !important;
    margin: 0 !important;
    font-weight: 400 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.profile-card-stats {
    width: 100% !important;
    padding: 12px !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.profile-card-stat-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 4px 0 !important;
}

.profile-card-stat-label {
    font-size: 0.7rem !important;
    color: rgba(0, 0, 0, 0.6) !important;
    font-weight: 600 !important;
    text-transform: none !important;
}

.profile-card-stat-value {
    font-size: 0.7rem !important;
    color: #0a66c2 !important;
    /* LinkedIn Blue */
    font-weight: 700 !important;
    text-transform: none !important;
}

.profile-card-premium-row {
    width: 100% !important;
    padding: 12px !important;
    text-align: left !important;
}

.profile-card-premium-label {
    font-size: 0.65rem !important;
    color: rgba(0, 0, 0, 0.6) !important;
    display: block !important;
    text-transform: none !important;
}

.profile-card-premium-link {
    font-size: 0.7rem !important;
    color: rgba(0, 0, 0, 0.9) !important;
    font-weight: 700 !important;
    text-decoration: underline !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    text-transform: none !important;
}

.profile-card-premium-link i {
    color: #f59e0b !important;
}

.dashboard-sidebar-menu-card {
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 10px !important;
    padding: 12px 8px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

.dashboard-sidebar-menu-title {
    font-size: 0.75rem !important;
    color: rgba(0, 0, 0, 0.9) !important;
    font-weight: 700 !important;
    padding: 4px 8px 8px 8px !important;
    margin: 0 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.dashboard-menu-link {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 8px 12px !important;
    color: rgba(0, 0, 0, 0.6) !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 0.8rem !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    border: none !important;
    border-radius: 4px !important;
    transition: background-color 0.15s ease, color 0.15s ease !important;
    cursor: pointer !important;
}

.dashboard-menu-link i {
    font-size: 1rem !important;
    color: rgba(0, 0, 0, 0.6) !important;
}

.dashboard-menu-link:hover {
    background-color: rgba(0, 0, 0, 0.08) !important;
    color: rgba(0, 0, 0, 0.9) !important;
}

.dashboard-menu-link.active {
    background-color: #e8f0fe !important;
    color: #0a66c2 !important;
    font-weight: 700 !important;
    box-shadow: none !important;
    transform: none !important;
}

.dashboard-menu-link.active i {
    color: #0a66c2 !important;
}

/* LinkedIn Card style for main section content */
.dashboard-content-panel .card-sharp {
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
    padding: 24px !important;
    margin-bottom: 16px !important;
}

.dashboard-content-panel .card-sharp h4 {
    color: rgba(0, 0, 0, 0.9) !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

/* Container overrides for soft background color */
.container.py-4 {
    max-width: 1200px !important;
}

body {
    background-color: #f3f2ef !important;
}

/* Drag and Drop Premium Upload Area */
.upload-dragzone {
    border: 2px dashed #cbd5e1;
    background-color: #f8fafc;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    position: relative;
    border-radius: 8px !important;
}

.upload-dragzone:hover,
.upload-dragzone.dragover {
    border-color: #0a66c2;
    background-color: rgba(10, 102, 194, 0.04);
}

.upload-dragzone-icon {
    font-size: 2.2rem;
    color: #94a3b8;
    margin-bottom: 10px;
    transition: color 0.2s;
}

.upload-dragzone:hover .upload-dragzone-icon,
.upload-dragzone.dragover .upload-dragzone-icon {
    color: #0a66c2;
}

/* Previews Grid styling */
.preview-thumbnail-card {
    position: relative;
    width: 82px;
    height: 82px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
    border-radius: 6px !important;
}

.preview-thumbnail-card img,
.preview-thumbnail-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-thumbnail-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.65);
    color: #ffffff;
    font-size: 0.5rem;
    font-family: monospace;
    padding: 1px 0;
    text-align: center;
    font-weight: bold;
}

.preview-thumbnail-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    background-color: #ef4444;
    color: #ffffff;
    border: none;
    font-size: 0.7rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    border-radius: 50% !important;
    transition: background-color 0.15s ease;
    z-index: 10;
}

.preview-thumbnail-remove:hover {
    background-color: #dc2626;
}

/* ==========================================================================
   Mobile Sliding Left Drawer & Bottom Navigation Styles (PWA Responsiveness)
   ========================================================================== */

/* Premium Animated Sliding Mobile Left Drawer */
.mobile-drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 24, 59, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-drawer-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100%;
    background-color: #ffffff;
    border-right: 4px solid var(--brand-secondary);
    box-shadow: 10px 0px 30px rgba(0, 24, 59, 0.15);
    z-index: 1060;
    overflow-y: auto;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    padding: 24px;
}

.mobile-drawer.active {
    left: 0;
}

.mobile-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.mobile-drawer-close {
    background: transparent;
    border: none;
    color: var(--brand-secondary);
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-drawer .nav-menu {
    flex-direction: column;
    gap: 16px;
}

.mobile-drawer .nav-item a {
    font-size: 0.95rem;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    color: #4b5563 !important;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    border-left: 4px solid transparent;
    transition: all 0.2s ease;
}

.mobile-drawer .nav-item a:hover,
.mobile-drawer .nav-item.active a {
    border-left-color: var(--brand-primary);
    background-color: #f0f8ff;
    color: var(--brand-secondary) !important;
}

/* Premium Mobile Bottom Navigation Bar (PWA Style) */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: #ffffff;
    border-top: 3px solid var(--brand-secondary);
    box-shadow: 0px -4px 12px rgba(0, 0, 0, 0.08);
    display: none;
    /* Only show on mobile */
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
}

.mobile-bottom-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #64748b;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    width: 25%;
    height: 100%;
    transition: all 0.2s ease;
}

.mobile-bottom-tab i,
.mobile-bottom-tab svg {
    margin-bottom: 4px;
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
    transition: transform 0.2s;
}

.mobile-bottom-tab:hover,
.mobile-bottom-tab.active {
    color: var(--brand-secondary) !important;
}

.mobile-bottom-tab.active i,
.mobile-bottom-tab.active svg {
    color: var(--brand-primary) !important;
    transform: scale(1.1);
}

/* Hero Section & Slider Responsiveness */
@media (max-width: 767px) {
    .carousel-item {
        min-height: auto !important;
        padding: 40px 0 !important;
    }

    /* Hero section centering & small fonts in mobile */
    .carousel-item .col-lg-8 {
        text-align: center !important;
    }

    .carousel-item h1 {
        font-size: 1.6rem !important;
        /* Smaller centered font */
        line-height: 1.25 !important;
        text-align: center !important;
    }

    .carousel-item h4.text-brand-primary {
        font-size: 0.9rem !important;
        text-align: center !important;
        margin-bottom: 12px !important;
    }

    .carousel-item p.lead {
        font-size: 0.8rem !important;
        /* Centered compact description */
        line-height: 1.45 !important;
        text-align: center !important;
        margin-bottom: 20px !important;
    }

    .carousel-item .badge-sharp {
        display: inline-block !important;
        margin: 0 auto 12px auto !important;
    }

    .carousel-item .d-flex {
        justify-content: center !important;
        /* Center buttons horizontally */
        gap: 10px !important;
    }

    .carousel-item .btn-sharp-primary,
    .carousel-item .btn-sharp-outline {
        padding: 8px 16px !important;
        font-size: 0.75rem !important;
    }

    .hero-flat-image {
        display: none !important;
        /* Hide mockup card inside hero to save space */
    }

    .mobile-bottom-nav {
        display: flex;
        /* Show bottom navigation on mobile */
    }

    body {
        padding-bottom: 75px !important;
        /* Prevent footer clipping by bottom navbar */
    }

    /* Amazing Benefits mobile grid responsive scaling (2 cards per row) */
    #benefits .card-sharp {
        padding: 10px 8px !important;
        border-width: 2px !important;
        box-shadow: 3px 3px 0px rgba(0, 54, 125, 0.1) !important;
    }

    #benefits .card-sharp .rounded-circle {
        width: 45px !important;
        height: 45px !important;
        margin-bottom: 10px !important;
    }

    #benefits .card-sharp .rounded-circle i {
        font-size: 1.1rem !important;
    }

    #benefits .card-sharp h5 {
        font-size: 0.72rem !important;
        min-height: 28px !important;
        line-height: 1.2 !important;
        margin-bottom: 4px !important;
    }

    #benefits .card-sharp h6 {
        font-size: 0.68rem !important;
        min-height: 20px !important;
        margin-bottom: 8px !important;
    }

    #benefits .card-sharp p {
        font-size: 0.62rem !important;
        min-height: auto !important;
        line-height: 1.25 !important;
        margin-bottom: 4px !important;
    }

    #benefits .card-sharp p.fw-bold {
        margin-bottom: 12px !important;
        min-height: auto !important;
    }

    #benefits .card-sharp div[style*="height: 110px"] {
        height: 70px !important;
        /* Scale down graphic height on small mobile */
        border-radius: 8px !important;
    }

    /* Homepage Promo Banner Slider text centering on mobile */
    #promoCarousel .col-lg-8 {
        text-align: center !important;
    }

    #promoCarousel .badge-sharp {
        display: inline-block !important;
        margin: 0 auto 10px auto !important;
    }

    #promoCarousel h3 {
        font-size: 1.25rem !important;
        text-align: center !important;
    }

    #promoCarousel h5 {
        font-size: 0.95rem !important;
        text-align: center !important;
    }

    #promoCarousel .btn-sharp-primary {
        display: inline-flex !important;
        margin: 10px auto 0 auto !important;
    }

    /* Jobs board horizontal touch slider on mobile */
    .mobile-horizontal-slider {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        gap: 16px !important;
        padding-bottom: 16px !important;
        margin-left: 0px !important;
        margin-right: 0px !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .mobile-slider-card {
        flex: 0 0 85% !important;
        /* Leaves a preview peek of the next card */
        scroll-snap-align: start !important;
        padding: 0 !important;
    }

    .mobile-slider-card .card-sharp {
        margin-bottom: 0px !important;
        height: 100% !important;
        border-width: 2px !important;
        box-shadow: 4px 4px 0px rgba(0, 54, 125, 0.1) !important;
    }

    /* Native scrolling enhancements */
    .mobile-horizontal-slider::-webkit-scrollbar {
        height: 5px !important;
    }

    .mobile-horizontal-slider::-webkit-scrollbar-track {
        background: #f1f5f9 !important;
    }

    .mobile-horizontal-slider::-webkit-scrollbar-thumb {
        background: var(--brand-primary) !important;
    }
}

/* =============================================================
   WORKER DASHBOARD - COMPLETE MOBILE RESPONSIVE OVERRIDES
   ============================================================= */

/* Wrapper for full-width mobile layout */
.worker-dashboard-wrap {
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .worker-dashboard-wrap {
        padding-left: 15px;
        padding-right: 15px;
    }
    .dashboard-content-panel {
        max-width: calc(100% - 252px);
        padding: 0;
    }
}

/* ---- Mobile Header (visible only on mobile) ---- */
.dashboard-mobile-header {
    display: none;
    background: linear-gradient(135deg, var(--brand-secondary) 0%, var(--brand-dark) 100%);
    border-bottom: 3px solid var(--brand-primary);
    padding: 10px 16px;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.mobile-header-avatar {
    width: 38px;
    height: 38px;
    border: 2px solid var(--brand-primary);
    border-radius: 50% !important;
    overflow: hidden !important;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

.mobile-header-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50% !important;
}

.mobile-header-status-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    border-radius: 50% !important;
    border: 2px solid var(--brand-dark);
}

.mobile-header-name {
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.2;
}

.mobile-header-id {
    color: var(--brand-primary);
    font-size: 0.65rem;
    font-weight: 700;
    font-family: monospace;
    letter-spacing: 0.05em;
}

.mobile-header-badge {
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
    padding: 4px 10px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    border-radius: 0 !important;
}

/* ---- Mobile Quick Menu Grid (2 rows × 3 icons) ---- */
.mobile-quick-menu {
    display: none; /* Hidden by default on desktop */
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 14px 12px;
    background: #ffffff;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.mobile-quick-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 8px;
    text-decoration: none;
    color: var(--brand-secondary);
    background: #f8faff;
    border: 2px solid #e2e8f0;
    transition: all 0.2s ease;
    cursor: pointer;
    min-height: 72px;
}

.mobile-quick-btn:hover,
.mobile-quick-btn.active {
    background: var(--brand-secondary);
    border-color: var(--brand-primary);
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,54,125,0.2);
}

.mobile-quick-btn.active .mobile-quick-icon,
.mobile-quick-btn:hover .mobile-quick-icon {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.4);
}

.mobile-quick-btn.active .mobile-quick-icon i,
.mobile-quick-btn:hover .mobile-quick-icon i {
    color: var(--brand-primary) !important;
}

.mobile-quick-icon {
    width: 44px;
    height: 44px;
    border-radius: 50% !important;
    background: rgba(0,54,125,0.08);
    border: 2px solid rgba(0,54,125,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.mobile-quick-icon i {
    font-size: 1.15rem;
    color: var(--brand-secondary);
    transition: all 0.2s;
}

.mobile-quick-btn span {
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-align: center;
    line-height: 1;
}

/* ---- Master Mobile Responsive Overrides for Dashboard ---- */
@media (max-width: 767px) {
    /* Outer wrapper */
    .worker-dashboard-wrap {
        padding: 0 !important;
    }

    /* Dashboard layout becomes single column */
    .dashboard-layout {
        flex-direction: column !important;
        gap: 0 !important;
        padding: 0 !important;
        background-color: #f3f2ef !important;
    }

    /* Hide desktop sidebar */
    .dashboard-sidebar {
        display: none !important;
    }

    /* Mobile header show */
    .dashboard-mobile-header {
        display: flex !important;
    }

    /* Show mobile bottom nav */
    .mobile-bottom-nav {
        display: flex !important;
    }

    /* Content panel full width */
    .dashboard-content-panel {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 0 80px 0 !important;
    }

    /* Section inner padding */
    .dashboard-content-panel .card-sharp,
    .dashboard-content-panel > .dashboard-section > div {
        margin-bottom: 12px !important;
    }

    /* Content padding for sections */
    .dashboard-section {
        padding: 0 12px !important;
    }

    /* Quick menu only on mobile */
    .mobile-quick-menu {
        display: grid !important;
    }

    /* Smart card wrapper mobile */
    .smart-card-wrapper {
        flex-direction: column !important;
        align-items: center !important;
        gap: 16px !important;
        margin: 12px 0 !important;
    }

    .smart-card-front,
    .smart-card-back {
        width: 100% !important;
        max-width: 340px !important;
        height: auto !important;
        min-height: 0 !important;
    }

    .card-body-content {
        flex-direction: column !important;
        height: auto !important;
        padding: 12px !important;
        gap: 10px !important;
        align-items: center !important;
    }

    .card-photo-box {
        width: 80px !important;
        height: 95px !important;
    }

    .card-details-box {
        padding-left: 0 !important;
        width: 100% !important;
    }

    .card-qr-box {
        width: 80px !important;
        height: 80px !important;
        margin: 0 auto !important;
    }

    .card-header-accent {
        height: auto !important;
        padding: 10px 14px !important;
    }

    .card-title-main {
        font-size: 1rem !important;
    }

    .card-footer-accent {
        height: auto !important;
        padding: 8px 14px !important;
    }

    /* Offer cards - 1 column on mobile */
    .offer-card-item {
        width: 100% !important;
    }

    /* Table responsive */
    .table-responsive {
        font-size: 0.75rem !important;
    }

    /* Form fields full width on mobile */
    .row.g-2 > [class*="col-md-"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    /* Section card padding */
    .card-sharp {
        padding: 16px !important;
    }

    /* Bottom nav height fix */
    body {
        padding-bottom: 70px !important;
    }
}

/* Tablet - medium (768-991px) fixes */
@media (min-width: 768px) and (max-width: 991px) {
    .dashboard-sidebar {
        width: 200px !important;
    }

    .dashboard-content-panel {
        max-width: calc(100% - 224px) !important;
    }

    .smart-card-front,
    .smart-card-back {
        width: 360px !important;
    }
}