:root {
    --primary: #1A73E8;
    --primary-light: #42A5F5;
    --primary-dark: #0D47A1;
    --light: #F0F2F5;
    --border: #E4E6EB;
    --gray: #65676B;
    --gray-light: #B0B3B8;
    --dark: #050505;
    --sidebar: #0a2540;
    --sidebar-hover: #3A3B3C;
    --success: #31A24C;
    --error: #FA383E;
    --warning: #F7B928;
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    --premium-shadow: 0 10px 30px rgba(26, 115, 232, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --glass: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: #f0f2f5;
    display: flex;
    height: 100vh;
    overflow: hidden;
    color: var(--dark);
}

/* SIDEBAR */
.sidebar {
    width: 280px;
    background: var(--sidebar);
    padding: 30px 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    position: relative;
    overflow: hidden;
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(180deg, rgba(26, 115, 232, 0.08) 0%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
}

.logo-container {
    padding: 0 25px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 30px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
    transition: var(--transition);
}

a.logo {
    text-decoration: none;
    color: inherit;
}

a.logo:hover {
    color: inherit;
    opacity: 0.95;
}

.logo-text {
    transition: var(--transition);
    white-space: nowrap;
    overflow: hidden;
}

/* Gradient wordmark on dark sidebar (matches full-logo reference; uses transparent mark + text) */
.sidebar .logo .logo-text--brand {
    background: linear-gradient(90deg, #BBDEFB 0%, #FFFFFF 42%, #90CAF9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #E3F2FD;
}

.sidebar-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.sidebar-toggle i {
    transition: var(--transition);
}

.logo-icon {
    background: var(--primary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.logo .logo-mark {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 10px;
    flex-shrink: 0;
    display: block;
}

.menu {
    padding: 0 15px;
    flex: 1;
}

.menu-item {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    color: #90949c;
    text-decoration: none;
    border-radius: 12px;
    margin: 0 15px 8px;
    transition: var(--transition);
    position: relative;
}

.menu-item i {
    font-size: 20px;
    width: 24px;
    text-align: center;
    transition: var(--transition);
}

.menu-item.active {
    background: rgba(26, 115, 232, 0.1);
    color: var(--primary-light);
}

.menu-item.active::after {
    content: '';
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: var(--primary);
    border-radius: 4px 0 0 4px;
    box-shadow: 0 0 10px var(--primary);
}

.menu-item:hover:not(.active) {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.menu-item:hover i {
    transform: translateX(3px);
}

.menu-item .badge {
    margin-left: auto;
    background: var(--primary-light);
    color: white;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 10px;
    font-weight: 600;
}

.menu-text {
    transition: var(--transition);
    white-space: nowrap;
    overflow: hidden;
}

.menu-section-header.menu-section-toggle {
    padding: 10px 20px 8px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b7280;
    margin: 4px 15px 2px;
    user-select: none;
    border: none;
    background: transparent;
    width: calc(100% - 30px);
    box-sizing: border-box;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.menu-section-header.menu-section-toggle:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #b0b3b8;
}

.menu-section-header.menu-section-toggle:focus-visible {
    outline: 2px solid var(--primary-light, #429fff);
    outline-offset: 2px;
}

.menu-section-header.menu-section-toggle > i:first-child {
    font-size: 18px;
    width: 24px;
    text-align: center;
    color: #90949c;
    flex-shrink: 0;
}

.menu-section-chevron {
    margin-left: auto;
    font-size: 11px;
    width: 14px;
    text-align: center;
    color: #90949c;
    flex-shrink: 0;
    transition: transform 0.22s ease;
}

.menu-section.is-expanded .menu-section-chevron {
    transform: rotate(0deg);
}

.menu-section:not(.is-expanded) .menu-section-chevron {
    transform: rotate(-90deg);
}

.menu-submenu {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.28s ease, opacity 0.2s ease;
}

.menu-section.is-expanded .menu-submenu {
    max-height: 160px;
    opacity: 1;
}

.menu-item.menu-sub {
    padding: 10px 20px 10px 24px;
    margin: 0 15px 4px 18px;
    font-size: 13px;
    gap: 12px;
}

.menu-item.menu-sub i {
    font-size: 16px;
    width: 22px;
}

.sidebar.collapsed .menu-section-header.menu-section-toggle {
    justify-content: center;
    padding: 8px 12px;
    width: calc(100% - 16px);
    margin-left: 8px;
    margin-right: 8px;
}

.sidebar.collapsed .menu-section-header.menu-section-toggle .menu-text {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.sidebar.collapsed .menu-section-chevron {
    display: none;
}

.sidebar.collapsed .menu-section:not(.is-expanded) .menu-submenu {
    max-height: 0 !important;
    opacity: 0 !important;
}

.sidebar.collapsed .menu-section.is-expanded .menu-submenu {
    max-height: 160px !important;
    opacity: 1 !important;
}

/* Collapsed Sidebar Styles */
.sidebar.collapsed {
    width: 80px;
}

.sidebar.collapsed .logo-text {
    display: none;
}

.sidebar.collapsed .menu-text {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

/* Collapsed: stack logo + toggle vertically so the chevron never overlaps the mark */
.sidebar.collapsed .logo-container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 8px 22px;
}

.sidebar.collapsed .logo {
    justify-content: center;
    width: 100%;
    min-height: 40px;
    gap: 0;
}

.sidebar.collapsed .sidebar-toggle {
    position: static;
    transform: none;
    margin: 0;
    flex-shrink: 0;
    align-self: center;
}

.sidebar.collapsed .sidebar-toggle:hover {
    transform: scale(1.05);
}

.sidebar.collapsed .sidebar-toggle i {
    transform: rotate(180deg);
}

.sidebar.collapsed .menu-item {
    justify-content: center;
    padding: 12px;
    margin: 0 8px 8px;
}

.sidebar.collapsed .menu-item span {
    display: none;
}

.sidebar.collapsed .menu-item.active::after {
    display: none;
}

.sidebar.collapsed .menu-item {
    position: relative;
}

.sidebar.collapsed .menu-item:hover .menu-text {
    display: block !important;
    position: absolute;
    left: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    background: var(--sidebar);
    padding: 8px 12px;
    border-radius: 8px;
    white-space: nowrap;
    z-index: 1001;
    box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 1 !important;
    width: auto !important;
    color: white;
    font-size: 14px;
    pointer-events: none;
    margin: 0;
}

.sidebar.collapsed .menu-item:hover .menu-text::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-right-color: var(--sidebar);
}

.subscription-box {
    background: #3A3B3C;
    margin: 20px;
    padding: 18px;
    border-radius: 10px;
    text-align: center;
}

.subscription-box p {
    color: #B0B3B8;
    font-size: 13px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.sub-btn {
    background: var(--primary);
    padding: 10px 18px;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    transition: var(--transition);
}

.sub-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* TOP BAR — grid layout + integrated search (no overlapping icon) */
.topbar {
    min-height: 72px;
    padding: 14px 28px;
    display: grid;
    grid-template-columns: minmax(160px, 1.2fr) minmax(200px, 1fr) auto;
    gap: 16px 24px;
    align-items: center;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    box-shadow:
        0 1px 0 rgba(0, 0, 0, 0.04),
        0 12px 32px rgba(26, 115, 232, 0.06);
}

.page-title {
    min-width: 0;
}

.page-title h1,
.page-title-heading {
    font-size: clamp(1.05rem, 2.2vw, 1.35rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--dark);
    margin: 0;
    line-height: 1.25;
}

.page-title p,
.page-title-desc {
    font-size: 13px;
    color: var(--gray);
    margin: 4px 0 0 0;
    line-height: 1.35;
}

.page-title-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.page-title-brand-logo {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    object-fit: cover;
    background: #fff;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.page-title-brand-fallback {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 17px;
    color: #fff;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.page-title-text {
    min-width: 0;
}

/* Search: flex row — icon + input share one bordered shell */
.search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 0 14px 0 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #f4f6f9;
    transition: var(--transition);
    min-width: 0;
    width: 100%;
    max-width: 420px;
    justify-self: center;
}

.search-box:focus-within {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.14);
}

.search-box i {
    position: static;
    transform: none;
    color: var(--gray);
    font-size: 15px;
    flex-shrink: 0;
    opacity: 0.88;
}

.search-box input {
    flex: 1;
    min-width: 0;
    width: auto;
    padding: 10px 0;
    border: none;
    border-radius: 0;
    background: transparent;
    font-size: 14px;
    color: var(--dark);
    transition: var(--transition);
}

.search-box input::placeholder {
    color: var(--gray-light);
}

.search-box input:focus {
    border: none;
    box-shadow: none;
    outline: none;
}

.top-right {
    display: flex;
    align-items: center;
    gap: 14px;
    justify-self: end;
}

.top-icons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #f4f6f9;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    cursor: pointer;
    position: relative;
    transition: var(--transition);
    text-decoration: none;
    font-size: 17px;
}

.icon-btn:hover {
    background: rgba(26, 115, 232, 0.1);
    border-color: rgba(26, 115, 232, 0.35);
    color: var(--primary);
}

.icon-btn .notification-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--error);
    color: white;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: 2px solid #f4f6f9;
}

/* Avatar */
.avatar-container {
    position: relative;
}

.avatar {
    width: 44px;
    height: 44px;
    background: linear-gradient(145deg, var(--primary), var(--primary-light));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid #fff;
    box-shadow: 0 2px 10px rgba(26, 115, 232, 0.25);
}

.avatar:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(26, 115, 232, 0.35);
}

/* DROPDOWN */
.dropdown {
    position: absolute;
    top: 55px;
    right: 0;
    background: white;
    width: 220px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    display: none;
    z-index: 1000;
    animation: fadeIn 0.2s ease;
    border: 1px solid var(--light);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

.dropdown-header {
    padding: 20px;
    background: var(--primary);
    color: white;
    text-align: center;
}

.dropdown-header .avatar-large {
    width: 60px;
    height: 60px;
    background: white;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
    font-size: 20px;
    margin: 0 auto 10px;
}

.dropdown-header h3 {
    font-size: 16px;
    margin-bottom: 3px;
}

.dropdown-header p {
    font-size: 12px;
    opacity: 0.9;
}

.dropdown-item {
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--dark);
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid var(--light);
    transition: var(--transition);
}

.dropdown-item i {
    width: 18px;
    color: var(--gray);
}

.dropdown-item:hover {
    background: var(--light);
    color: var(--primary);
}

.dropdown-item:hover i {
    color: var(--primary);
}

.logout {
    color: var(--error);
    font-weight: 600;
}

.logout:hover {
    background: rgba(250, 56, 62, 0.1) !important;
    color: var(--error) !important;
}

/* MAIN CONTENT */
.main-layout {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #eef0f4;
    background-image:
        radial-gradient(ellipse 95% 55% at 100% -5%, rgba(26, 115, 232, 0.08), transparent 52%),
        radial-gradient(ellipse 75% 45% at 0% 105%, rgba(64, 156, 255, 0.07), transparent 48%);
}

.content-area {
    flex: 1;
    padding: 28px 32px 40px;
    overflow-y: auto;
    overflow-x: hidden;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Welcome Banner */
.welcome-banner {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 25px;
    border-radius: 16px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.welcome-text h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.welcome-text p {
    opacity: 0.9;
    font-size: 15px;
}

.welcome-icon {
    font-size: 48px;
    opacity: 0.9;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 22px;
    border-radius: 14px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(26, 115, 232, 0.1);
    border-color: rgba(26, 115, 232, 0.25);
}

.stat-card:nth-child(2) {
    border-left-color: var(--primary-light);
}

.stat-card:nth-child(3) {
    border-left-color: #36A420;
}

.stat-card:nth-child(4) {
    border-left-color: #F7B928;
}

.stat-info h3 {
    font-size: 12px;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1;
}

.stat-change {
    font-size: 12px;
    color: var(--success);
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 3px;
}

.stat-change.down {
    color: var(--error);
}

.stat-change.neutral {
    color: var(--gray);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    background: var(--primary);
}

.stat-card:nth-child(2) .stat-icon {
    background: var(--primary-light);
}

.stat-card:nth-child(3) .stat-icon {
    background: #36A420;
}

.stat-card:nth-child(4) .stat-icon {
    background: #F7B928;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
}

.card {
    background: white;
    border-radius: 12px;
    padding: 22px;
    box-shadow: var(--card-shadow);
    margin-bottom: 25px;
}

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

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark);
}

.card-link {
    color: var(--primary);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.card-link:hover {
    text-decoration: underline;
}

/* Activity List */
.activity-list {
    list-style: none;
}

.activity-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--light);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(26, 115, 232, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 16px;
}

.activity-details h4 {
    font-size: 15px;
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 3px;
}

.activity-details p {
    font-size: 13px;
    color: var(--gray);
}

.activity-time {
    font-size: 12px;
    color: var(--gray);
    margin-left: auto;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.action-btn {
    background: var(--light);
    border: 1px solid var(--light);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    color: var(--dark);
}

.action-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
}

.action-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.action-btn.disabled:hover {
    background: var(--light);
    color: var(--dark);
    border-color: var(--light);
    transform: none;
}

.action-btn i {
    font-size: 20px;
}

.action-btn span {
    font-size: 13px;
    font-weight: 500;
    text-align: center;
}

/* Campaign Cards */
.campaigns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.campaign-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    border-top: 4px solid var(--primary);
    position: relative;
    cursor: pointer;
}

.campaign-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.campaign-card.active {
    border-top-color: var(--success);
}

.campaign-card.paused {
    border-top-color: var(--warning);
}

.campaign-card.completed {
    border-top-color: var(--gray);
}

.campaign-card.archived {
    border-top-color: var(--dark);
}

.campaign-status {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-active {
    background: rgba(54, 164, 32, 0.1);
    color: var(--success);
}

.status-paused {
    background: rgba(247, 185, 40, 0.1);
    color: var(--warning);
}

.status-completed {
    background: rgba(176, 179, 184, 0.1);
    color: var(--gray);
}

.status-archived {
    background: rgba(36, 37, 38, 0.1);
    color: var(--dark);
}

.campaign-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 10px;
    padding-right: 80px;
}

.campaign-description {
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.5;
}

.campaign-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 13px;
}

.campaign-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--dark);
}

.campaign-meta-item i {
    color: var(--primary);
}

.campaign-progress {
    margin-bottom: 15px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 13px;
    color: var(--gray);
}

.progress-bar {
    height: 6px;
    background: var(--light);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.campaign-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.campaign-action-btn {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-edit {
    background: var(--light);
    color: var(--dark);
}

.btn-edit:hover {
    background: var(--primary);
    color: white;
}

.btn-delete {
    background: rgba(250, 56, 62, 0.1);
    color: var(--error);
}

.btn-delete:hover {
    background: var(--error);
    color: white;
}

/* Modal (custom overlay system used in HRMS v0 screens) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-overlay .modal {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 24px;
    width: 95%;
    max-width: 800px;
    max-height: 95vh;
    overflow: hidden;
    /* Remove scroll from outer modal */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.4);
    animation: modalSlideIn 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

.modal-header {
    padding: 24px;
    border-bottom: 1px solid var(--light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--dark);
}

.modal-close {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--gray);
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--error);
}

.modal-body {
    padding: 30px;
    flex: 1;
    overflow-y: visible;
    /* Steps should handle their own space */
}

.modal-footer {
    padding: 20px 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.5);
}

/* Multi-step logic */
.modal-step {
    display: none;
}

.modal-step.active {
    display: block;
    animation: fadeInStep 0.4s ease;
}

@keyframes fadeInStep {
    from {
        opacity: 0;
        transform: translateX(10px);
    }

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

/* Step Indicator */
.step-indicator {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    padding: 0 5px;
}

.step {
    flex: 1;
    height: 4px;
    background: var(--light);
    border-radius: 2px;
    position: relative;
    transition: var(--transition);
}

.step.active {
    background: var(--primary);
    box-shadow: 0 0 10px rgba(26, 115, 232, 0.3);
}

.step.completed {
    background: var(--success);
}

.step-label {
    position: absolute;
    top: -20px;
    left: 0;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--gray);
    letter-spacing: 0.5px;
}

.step.active .step-label {
    color: var(--primary);
}

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

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

.form-control {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid var(--light);
    background: white;
    font-size: 14px;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
    outline: none;
}

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

/* Alert Messages */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

.alert-success {
    background: rgba(54, 164, 32, 0.1);
    border-left: 4px solid var(--success);
    color: var(--success);
}

.alert-error {
    background: rgba(250, 56, 62, 0.1);
    border-left: 4px solid var(--error);
    color: var(--error);
}

.alert i {
    font-size: 18px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--gray);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    margin-bottom: 10px;
    color: var(--dark);
}

/* Success Message */
.success-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--success);
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: none;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

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

/* Button Styles */
.btn-action {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-action:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-action.secondary {
    background: var(--light);
    color: var(--dark);
}

.btn-action.secondary:hover {
    background: #d0d4da;
}

/* Responsive */
@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .topbar {
        grid-template-columns: minmax(140px, 1fr) minmax(160px, 1fr) auto;
        gap: 12px 16px;
        padding: 12px 20px;
    }

    .search-box {
        max-width: 100%;
    }

    .campaigns-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 992px) {
    .sidebar {
        width: 80px;
    }

    .logo span:not(.logo-icon),
    .menu-item span:not(i),
    .subscription-box p,
    .sub-btn span {
        display: none;
    }

    .logo {
        justify-content: center;
    }

    .menu-item {
        justify-content: center;
        padding: 15px;
    }

    .subscription-box {
        padding: 15px 10px;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .topbar {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        padding: 12px 16px;
    }

    .page-title {
        grid-column: 1;
        grid-row: 1;
        min-width: 0;
    }

    .top-right {
        grid-column: 2;
        grid-row: 1;
        align-self: start;
    }

    .search-box {
        grid-column: 1 / -1;
        grid-row: 2;
        max-width: none;
        width: 100%;
        justify-self: stretch;
    }

    .content-area {
        padding: 20px 16px 32px;
    }

    .welcome-banner {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

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

@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .quick-actions {
        grid-template-columns: 1fr;
    }

    .topbar {
        padding: 0 15px;
    }

    .top-icons {
        gap: 10px;
    }

    .campaign-meta {
        flex-direction: column;
        gap: 10px;
    }

    .campaign-actions {
        flex-wrap: wrap;
    }
}

/* PREMIUM COMPONENTS */
.premium-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04),
        0 1px 8px rgba(0, 0, 0, 0.02);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.premium-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    opacity: 0;
    transition: var(--transition);
}

.premium-card:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(26, 115, 232, 0.08);
}

.premium-card:hover::before {
    opacity: 1;
}

/* Tab System */
.tab-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.tab-nav {
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.5);
    padding: 8px;
    border-radius: 16px;
    width: max-content;
    border: 1px solid var(--border);
    backdrop-filter: blur(5px);
}

.tab-btn {
    padding: 12px 24px;
    border: none;
    background: transparent;
    color: var(--gray);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 12px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.tab-btn i {
    font-size: 16px;
}

.tab-btn:hover {
    color: var(--primary);
    background: rgba(26, 115, 232, 0.05);
}

.tab-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(26, 115, 232, 0.3);
}

.tab-content {
    animation: slideUp 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Forms */
.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 10px;
    transition: var(--transition);
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1.5px solid var(--border);
    background: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    transition: var(--transition);
    color: var(--dark);
}

.form-control:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.1);
    outline: none;
}

.form-control::placeholder {
    color: var(--gray-light);
}

.btn-premium {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 14px 28px;
    border-radius: 12px;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(26, 115, 232, 0.2);
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 115, 232, 0.3);
    filter: brightness(1.1);
}

.btn-premium:active {
    transform: translateY(0);
}

/* Dark theme (HRMS appearance settings) */
body[data-theme="dark"] {
    background: #18191a;
    color: #e4e6eb;
}

body[data-theme="dark"] .main-content {
    background: #18191a;
    background-image:
        radial-gradient(ellipse 95% 55% at 100% -5%, rgba(26, 115, 232, 0.12), transparent 52%),
        radial-gradient(ellipse 75% 45% at 0% 105%, rgba(64, 156, 255, 0.08), transparent 48%);
}

body[data-theme="dark"] .topbar {
    background: #242526;
    border-bottom-color: #3e4042;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.25);
}

body[data-theme="dark"] .page-title h1,
body[data-theme="dark"] .page-title-heading,
body[data-theme="dark"] .page-title p,
body[data-theme="dark"] .page-title-desc {
    color: #e4e6eb;
}

body[data-theme="dark"] .page-title p,
body[data-theme="dark"] .page-title-desc {
    color: #b0b3b8;
}

body[data-theme="dark"] .search-box {
    background: #3a3b3c;
    border-color: #4e4f50;
}

body[data-theme="dark"] .search-box:focus-within {
    background: #3e4042;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.22);
}

body[data-theme="dark"] .search-box input {
    color: #e4e6eb;
}

body[data-theme="dark"] .search-box input::placeholder {
    color: #8a8d91;
}

body[data-theme="dark"] .icon-btn {
    background: #3a3b3c;
    border-color: #4e4f50;
    color: #e4e6eb;
}

body[data-theme="dark"] .icon-btn:hover {
    background: rgba(26, 115, 232, 0.2);
    border-color: rgba(26, 115, 232, 0.45);
    color: var(--primary-light);
}

body[data-theme="dark"] .icon-btn .notification-badge {
    border-color: #3a3b3c;
}

body[data-theme="dark"] .content-area {
    background: transparent;
    color: #e4e6eb;
}

body[data-theme="dark"] .stat-card {
    background: #242526;
    border-color: #3e4042;
    border-left-color: var(--primary);
}

body[data-theme="dark"] .stat-card:hover {
    border-color: rgba(26, 115, 232, 0.35);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

body[data-theme="dark"] .stat-value {
    color: #e4e6eb;
}

body[data-theme="dark"] .premium-card {
    background: #242526;
    border-color: #3e4042;
    color: #e4e6eb;
}

body[data-theme="dark"] .premium-card .card-title,
body[data-theme="dark"] .premium-card h3,
body[data-theme="dark"] .premium-card h4 {
    color: #e4e6eb;
}

body[data-theme="dark"] .tab-nav {
    background: #242526;
    border-color: #3e4042;
}

body[data-theme="dark"] .tab-btn {
    color: #b0b3b8;
}

body[data-theme="dark"] .tab-btn:hover,
body[data-theme="dark"] .tab-btn.active {
    color: #e4e6eb;
    background: rgba(255, 255, 255, 0.08);
}

body[data-theme="dark"] .form-control {
    background: #3e4042;
    border-color: #4e5052;
    color: #e4e6eb;
}

body[data-theme="dark"] .form-control:focus {
    background: #4e5052;
    border-color: var(--primary);
}

body[data-theme="dark"] .form-label {
    color: #b0b3b8;
}

body[data-theme="dark"] .list-container {
    background: rgba(255, 255, 255, 0.05);
    border-color: #3e4042;
}

body[data-theme="dark"] .list-item {
    border-bottom-color: #3e4042;
    color: #e4e6eb;
}

body[data-theme="dark"] .list-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

body[data-theme="dark"] .item-info span {
    color: #b0b3b8;
}

body[data-theme="dark"] .alert {
    background: #242526;
    border-color: #3e4042;
    color: #e4e6eb;
}

body[data-theme="dark"] .modal {
    background: #242526;
    border-color: #3e4042;
}

body[data-theme="dark"] .modal-header {
    background: #3e4042;
    border-bottom-color: #4e5052;
}

body[data-theme="dark"] .modal-header h2 {
    color: #e4e6eb;
}

body[data-theme="dark"] .modal-body {
    color: #e4e6eb;
}

body[data-theme="dark"] .theme-option[data-theme="light"] {
    background: #3e4042;
    color: #e4e6eb;
}

/* ========== HRMS shared module layout (list/tool pages) ========== */
@keyframes hrms-spin {
    to {
        transform: rotate(360deg);
    }
}

.hrms-page-shell {
    max-width: 1320px;
    margin: 0 auto;
}

.hrms-module-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 28px;
}

.hrms-module-page-header .title-block h2 {
    font-size: 22px;
    font-weight: 600;
    color: var(--dark);
    margin: 0;
}

.hrms-module-page-header .title-block p {
    color: var(--gray);
    font-size: 14px;
    margin: 6px 0 0 0;
    line-height: 1.45;
}

.hrms-segmented-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px;
    margin-bottom: 28px;
    background: var(--light);
    border-radius: 14px;
    border: 1px solid var(--border);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.hrms-segmented-tab {
    flex: 1 1 auto;
    min-width: 120px;
    padding: 12px 16px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 13px;
    color: var(--gray);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, transform 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.hrms-segmented-tab:hover:not(.active) {
    background: rgba(255, 255, 255, 0.65);
    color: var(--dark);
}

.hrms-segmented-tab.active {
    background: white;
    color: var(--primary);
    box-shadow: 0 4px 14px rgba(26, 115, 232, 0.15);
    border: 1px solid rgba(26, 115, 232, 0.22);
}

.hrms-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.hrms-callout-muted {
    font-size: 13px;
    color: var(--gray);
    max-width: 320px;
    line-height: 1.5;
    padding: 12px 16px;
    background: var(--light);
    border-radius: 12px;
    border: 1px solid var(--border);
}

body[data-theme="dark"] .hrms-callout-muted {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    color: #b0b3b8;
}

body[data-theme="dark"] .hrms-module-page-header .title-block h2 {
    color: #e4e6eb;
}

body[data-theme="dark"] .hrms-module-page-header .title-block p {
    color: #b0b3b8;
}

body[data-theme="dark"] .hrms-segmented-tabs {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.08);
}

body[data-theme="dark"] .hrms-segmented-tab:hover:not(.active) {
    background: rgba(255, 255, 255, 0.06);
    color: #e4e6eb;
}

body[data-theme="dark"] .hrms-segmented-tab.active {
    background: rgba(26, 115, 232, 0.18);
    color: #e4e6eb;
    border-color: rgba(26, 115, 232, 0.35);
    box-shadow: none;
}

/* Dark: white “module” cards inside HRMS content area */
body[data-theme="dark"] .main-content .content-area .search-filter-section {
    background: #242526;
    border-color: #3e4042;
}

body[data-theme="dark"] .main-content .content-area .table-container {
    background: #242526;
    border-color: #3e4042;
}

body[data-theme="dark"] .main-content .content-area .expense-stat-card,
body[data-theme="dark"] .main-content .content-area .leave-stat-card,
body[data-theme="dark"] .main-content .content-area .exit-stat-card {
    background: #242526;
    border-color: #3e4042;
}

body[data-theme="dark"] .main-content .content-area .expense-stat-info .val,
body[data-theme="dark"] .main-content .content-area .leave-stat-info .val,
body[data-theme="dark"] .main-content .content-area .exit-stat-info .val {
    color: #e4e6eb;
}

body[data-theme="dark"] .main-content .content-area .expense-page-header h2,
body[data-theme="dark"] .main-content .content-area .leave-page-header h2,
body[data-theme="dark"] .main-content .content-area .exit-page-header h2 {
    color: #e4e6eb;
}

body[data-theme="dark"] .main-content .content-area .expense-table thead,
body[data-theme="dark"] .main-content .content-area .leave-table thead,
body[data-theme="dark"] .main-content .content-area .exit-table thead {
    background: linear-gradient(180deg, rgba(26, 115, 232, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
}

body[data-theme="dark"] .main-content .content-area .expense-table th,
body[data-theme="dark"] .main-content .content-area .leave-table th,
body[data-theme="dark"] .main-content .content-area .exit-table th {
    color: #e4e6eb;
    border-bottom-color: #3e4042;
}

body[data-theme="dark"] .main-content .content-area .expense-table td,
body[data-theme="dark"] .main-content .content-area .leave-table td,
body[data-theme="dark"] .main-content .content-area .exit-table td {
    border-bottom-color: #3e4042;
    color: #e4e6eb;
}

body[data-theme="dark"] .main-content .content-area .stats-grid .stat-card {
    background: #242526;
    border: 1px solid #3e4042;
}

body[data-theme="dark"] .main-content .content-area .stats-grid .stat-info h3,
body[data-theme="dark"] .main-content .content-area .stats-grid .stat-value {
    color: #e4e6eb;
}

body[data-theme="dark"] .main-content .content-area .stats-grid .stat-change {
    color: #b0b3b8;
}

body[data-theme="dark"] .main-content .content-area .asset-table thead {
    background: linear-gradient(180deg, rgba(26, 115, 232, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
}

body[data-theme="dark"] .main-content .content-area .asset-table th,
body[data-theme="dark"] .main-content .content-area .asset-table td {
    color: #e4e6eb;
    border-color: #3e4042;
}

body[data-theme="dark"] .main-content .content-area .asset-main-text {
    color: #e4e6eb;
}

body[data-theme="dark"] .main-content .content-area .asset-sub-text {
    color: #b0b3b8;
}

body[data-theme="dark"] .main-content .content-area .pagination-container {
    color: #b0b3b8;
}

body[data-theme="dark"] .main-content .content-area .pagination-container a {
    background: #242526;
    border-color: #3e4042;
    color: #e4e6eb;
}

body[data-theme="dark"] .main-content .content-area .config-section {
    background: #242526;
    border-color: #3e4042;
}

body[data-theme="dark"] .main-content .content-area .config-section h3 {
    color: #e4e6eb;
}

body[data-theme="dark"] .main-content .content-area .config-table th,
body[data-theme="dark"] .main-content .content-area .config-table td {
    color: #e4e6eb;
    border-color: #3e4042;
}

body[data-theme="dark"] .main-content .content-area .empty-state h3 {
    color: #e4e6eb;
}

body[data-theme="dark"] .main-content .content-area .empty-state p {
    color: #b0b3b8;
}

body[data-theme="dark"] .main-content .content-area .campaign-card {
    background: #242526;
    border: 1px solid #3e4042;
    border-top-width: 4px;
}

body[data-theme="dark"] .main-content .content-area .campaign-title,
body[data-theme="dark"] .main-content .content-area .campaign-description {
    color: #e4e6eb;
}

body[data-theme="dark"] .main-content .content-area .card {
    background: #242526;
    border: 1px solid #3e4042;
}

body[data-theme="dark"] .main-content .content-area .card-title {
    color: #e4e6eb;
}

body[data-theme="dark"] .main-content .content-area .security-section {
    background: #242526;
    border: 1px solid #3e4042;
}

body[data-theme="dark"] .main-content .content-area .security-section h3 {
    color: #e4e6eb;
}

body[data-theme="dark"] .main-content .content-area .session-card {
    background: #3a3b3c;
    border-color: #4e5052;
}

body[data-theme="dark"] .main-content .content-area .session-info strong {
    color: #e4e6eb;
}

body[data-theme="dark"] .main-content .content-area .advanced-filters {
    background: #242526;
    border: 1px solid #3e4042;
}

body[data-theme="dark"] .main-content .content-area .advanced-filters h3 {
    color: #e4e6eb;
}

body[data-theme="dark"] .main-content .content-area .employee-card {
    background: #242526;
    border: 1px solid #3e4042;
}

body[data-theme="dark"] .main-content .content-area .employee-card .employee-name {
    color: #e4e6eb;
}

body[data-theme="dark"] .main-content .content-area .employee-card .employee-designation,
body[data-theme="dark"] .main-content .content-area .employee-card .employee-info-item span {
    color: #b0b3b8;
}

body[data-theme="dark"] .main-content .content-area .employee-card .employee-info-item strong {
    color: #e4e6eb;
}

body[data-theme="dark"] .main-content .content-area .view-toggle {
    background: #242526;
    border: 1px solid #3e4042;
}

body[data-theme="dark"] .main-content .content-area .directory-nav-tabs {
    background: #242526 !important;
    border-color: #3e4042 !important;
}

body[data-theme="dark"] .main-content .content-area .search-filters,
body[data-theme="dark"] .main-content .content-area .team-filters {
    background: #242526;
    border: 1px solid #3e4042;
}

body[data-theme="dark"] .main-content .content-area .skill-card {
    background: #242526;
    border: 1px solid #3e4042;
}

body[data-theme="dark"] .main-content .content-area .skill-name,
body[data-theme="dark"] .main-content .content-area .skill-stat strong {
    color: #e4e6eb;
}

body[data-theme="dark"] .main-content .content-area .team-employees {
    background: #242526;
    border: 1px solid #3e4042;
    border-top: none;
}

body[data-theme="dark"] .main-content .content-area .team-employee-card {
    background: rgba(255, 255, 255, 0.04);
    border-color: #3e4042;
}

body[data-theme="dark"] .main-content .content-area .team-employee-name {
    color: #e4e6eb;
}

body[data-theme="dark"] .main-content .content-area .filters-section {
    background: #242526;
    border: 1px solid #3e4042;
}

body[data-theme="dark"] .main-content .content-area .audit-table-wrap {
    background: #242526 !important;
    border-color: #3e4042 !important;
}

body[data-theme="dark"] .main-content .content-area .audit-stats .stat-card {
    background: #242526;
    border: 1px solid #3e4042;
}

body[data-theme="dark"] .main-content .content-area .audit-stats .stat-card h3 {
    color: var(--primary-light);
}

body[data-theme="dark"] .main-content .content-area .audit-table {
    background: #242526;
}

body[data-theme="dark"] .main-content .content-area .audit-table th,
body[data-theme="dark"] .main-content .content-area .audit-table td {
    color: #e4e6eb;
    border-color: #3e4042;
}

body[data-theme="dark"] .main-content .content-area.reports-page .report-card,
body[data-theme="dark"] .main-content .content-area.reports-page .template-card {
    background: #242526;
    border-color: #3e4042;
}

body[data-theme="dark"] .main-content .content-area.reports-page .report-header h3 {
    color: #e4e6eb;
}

body[data-theme="dark"] .main-content .content-area.reports-page .tabs {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.08);
}

body[data-theme="dark"] .main-content .content-area.reports-page .tab {
    color: #b0b3b8;
}

body[data-theme="dark"] .main-content .content-area.reports-page .tab.active {
    background: rgba(26, 115, 232, 0.18);
    color: #e4e6eb;
}

body[data-theme="dark"] .main-content .content-area.reports-page .page-header-wrap h2 {
    color: #e4e6eb;
}

body[data-theme="dark"] .modal-overlay .modal {
    background: #242526;
    border: 1px solid #3e4042;
}

body[data-theme="dark"] .modal-overlay .modal-header {
    background: linear-gradient(135deg, rgba(26, 115, 232, 0.85), rgba(13, 71, 161, 0.95));
}

body[data-theme="dark"] .modal-overlay .modal-footer {
    background: #3a3b3c;
    border-top-color: #4e5052;
}
