@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

:root {
    /* Colors */
    --bg-page: #f0f4f8;
    --bg-white: #ffffff;
    --bg-gray-50: #f9fafb;
    --bg-gray-100: #f3f4f6;
    
    /* Sidebar gradient - exact from image */
    --sidebar-from: #b8f3d8;
    --sidebar-to: #93c5fd;
    
    /* Text */
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --text-light: #9ca3af;
    
    /* Primary blue */
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;
    
    /* Status colors */
    --green-500: #10b981;
    --red-500: #ef4444;
    --orange-500: #f59e0b;
    
    /* Borders */
    --border-gray: #e5e7eb;
    --border-blue: #dbeafe;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.05);
    --shadow: 0 1px 3px 0 rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1);
}

[data-theme="dark"] {
    /* Backgrounds - adjusted to match sidebar better */
    --bg-page: #0f1923;
    --bg-white: #1a2332;
    --bg-gray-50: #252d3d;
    --bg-gray-100: #2f3848;
    
    /* Improved Sidebar gradient - more vibrant and appealing */
    --sidebar-from: #1a4d7a;
    --sidebar-to: #134e5e;
    
    /* Text - VERY bright for visibility */
    --text-dark: #ffffff;
    --text-gray: #e0e7ff;
    --text-light: #b8c5e0;
    
    /* Borders - visible but subtle */
    --border-gray: #3d4461;
    --border-blue: #2563eb;
    
    /* Shadows - stronger for depth */
    --shadow-sm: 0 2px 4px 0 rgba(0,0,0,0.8);
    --shadow: 0 2px 6px 0 rgba(0,0,0,0.9);
    --shadow-md: 0 6px 10px -1px rgba(0,0,0,0.9);
    --shadow-lg: 0 15px 25px -3px rgba(0,0,0,0.95);
    --shadow-xl: 0 25px 35px -5px rgba(0,0,0,1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-page);
    color: var(--text-dark);
    line-height: 1.6;
}

/* ===== GLOBAL DARK MODE TEXT FIX ===== */
[data-theme="dark"] body,
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6,
[data-theme="dark"] p,
[data-theme="dark"] span,
[data-theme="dark"] div,
[data-theme="dark"] td,
[data-theme="dark"] th,
[data-theme="dark"] li,
[data-theme="dark"] a {
    color: #ffffff;
}

[data-theme="dark"] .text-muted {
    color: #e0e7ff !important;
}

[data-theme="dark"] .text-gray {
    color: #e0e7ff !important;
}

/* ===== THEME TOGGLE ===== */
.theme-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
    border: none;
    color: white;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 9999;
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(180deg);
}

/* ===== LOGIN PAGE ===== */
.login-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-container {
    width: 100%;
    max-width: 440px;
}

.login-box {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-xl);
}

.login-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.login-box h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.subtitle {
    text-align: center;
    color: var(--text-gray);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

[data-theme="dark"] .subtitle {
    color: #e0e7ff;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

[data-theme="dark"] .form-group label {
    color: #ffffff;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-gray);
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    background: var(--bg-white);
    color: var(--text-dark);
    transition: all 0.2s;
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group select {
    color: #ffffff;
    background: #1a1f2e;
    border-color: #3d4461;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--blue-500);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group select:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.captcha-group {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.captcha-box {
    flex: 1;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 2px dashed var(--blue-500);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
}

[data-theme="dark"] .captcha-box {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    border-color: #60a5fa;
}

.captcha-question {
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--blue-600);
    letter-spacing: 4px;
}

[data-theme="dark"] .captcha-question {
    color: #bfdbfe;
}

.btn-refresh {
    padding: 0.875rem;
    background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-refresh:hover {
    transform: rotate(180deg);
}

/* ===== BUTTONS ===== */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Inter', sans-serif;
}

.btn-primary {
    background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--bg-gray-100);
    color: var(--text-dark);
    border: 2px solid var(--border-gray);
}

.btn-secondary:hover {
    background: var(--bg-gray-50);
}

.btn-success {
    background: var(--green-500);
    color: white;
}

.btn-danger {
    background: var(--red-500);
    color: white;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-icon {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 8px;
    color: var(--text-gray);
    font-size: 1.25rem;
}

.btn-delete:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--red-500);
}

/* ===== ALERTS ===== */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.25rem;
    border: 2px solid;
    font-weight: 600;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--green-500);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: var(--red-500);
}

/* ===== LAYOUT ===== */
.app-layout {
    display: flex;
    min-height: 100vh;
}

/* ===== SIDEBAR ===== */
.sidebar {
    width: 240px;
    background: linear-gradient(180deg, var(--sidebar-from) 0%, var(--sidebar-to) 100%);
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    z-index: 100;
}

.sidebar-logo {
    padding: 1.5rem 1rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .sidebar-logo {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.sidebar-logo-img {
    width: 100%;
    max-width: 120px;
    margin-bottom: 1rem;
}

.sidebar-logo h3 {
    font-size: 0.95rem;
    font-weight: 900;
    margin: 0;
    padding: 0.75rem 1rem;
    color: #1f2937;
    letter-spacing: 0.3px;
    text-align: center;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    line-height: 1.4;
}

[data-theme="dark"] .sidebar-logo h3 {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
}

.nav-item {
    margin: 0.25rem 0.75rem;
}

.nav-item-dropdown {
    position: relative;
    margin: 0.75rem;
}

/* White Box Dropdown Button - REMOVED, now simple */
.nav-link-dropdown {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1rem;
    border-radius: 12px;
    background: transparent;
    color: #1f2937;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

[data-theme="dark"] .nav-link-dropdown {
    background: transparent;
    color: #ffffff;
}

.nav-link-dropdown:hover {
    background: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .nav-link-dropdown:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-link-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Simple Link Style for User Management */
.nav-link-simple {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: 12px;
    color: #1f2937;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
    text-decoration: none;
}

[data-theme="dark"] .nav-link-simple {
    color: #ffffff;
}

.nav-link-simple:hover {
    background: rgba(255, 255, 255, 0.15);
}

.nav-link-simple.active {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .nav-link-simple.active {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* OLD nav-link kept for backwards compatibility */
.nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: 12px;
    color: #1f2937;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

[data-theme="dark"] .nav-link {
    color: #ffffff;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
}

.nav-link.active {
    background: white;
    color: var(--blue-600);
    box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .nav-link.active {
    background: #2f3548;
    color: #60a5fa;
    box-shadow: 0 0 0 2px #2563eb;
}

.nav-icon {
    font-size: 1.3rem;
    width: 24px;
    flex-shrink: 0;
}

.nav-link svg.nav-icon {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
}

.dropdown-arrow {
    margin-left: auto;
    font-size: 0.7rem;
    transition: transform 0.2s;
}

.nav-link.open .dropdown-arrow {
    transform: rotate(180deg);
}

/* ===== DROPDOWN MENU ===== */
.nav-dropdown {
    position: absolute;
    left: calc(100% + 0.75rem);
    top: 0;
    min-width: 180px;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    border: 2px solid var(--border-gray);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.2s;
    z-index: 1000;
}

.nav-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.15s;
}

[data-theme="dark"] .nav-dropdown-item {
    color: #ffffff;
}

.nav-dropdown-item:hover {
    background: var(--bg-gray-50);
    color: var(--blue-600);
    transform: translateX(3px);
}

[data-theme="dark"] .nav-dropdown-item:hover {
    background: #2f3548;
    color: #60a5fa;
}

.nav-dropdown-item .platform-icon{
    width:20px;
    height:20px;
    object-fit:contain;
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .sidebar-footer {
    border-top-color: rgba(255, 255, 255, 0.1);
}

/* New Modern Logout Button */
.logout-btn-new {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
    color: #1f2937;
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

[data-theme="dark"] .logout-btn-new {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

.logout-btn-new:hover {
    background: #dc2626;
    color: white;
    border-color: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

[data-theme="dark"] .logout-btn-new:hover {
    background: #ef4444;
    border-color: #ef4444;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.logout-btn-new svg {
    flex-shrink: 0;
}

/* Old logout button - kept for compatibility */
.logout-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: 12px;
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.logout-btn:hover {
    background: #dc2626;
    color: white;
    transform: translateY(-2px);
}

/* ===== MAIN CONTENT ===== */
.main-content {
    flex: 1;
    margin-left: 240px;
    display: flex;
    flex-direction: column;
}

/* ===== TOP NAVIGATION BAR ===== */
.top-navbar {
    background: var(--bg-white);
    border-bottom: 2px solid var(--border-gray);
    padding: 1.25rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 50;
    min-height: 80px;
}

[data-theme="dark"] .top-navbar {
    background: #1a1f2e;
    border-bottom-color: #3d4461;
}

.navbar-left {
    display: flex;
    align-items: center;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Page Indicator - White Box Style */
.page-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1.75rem;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--border-gray);
}

[data-theme="dark"] .page-indicator {
    background: #252b3d;
    border-color: #3d4461;
}

.page-icon {
    font-size: 1.5rem;
    line-height: 1;
    color: var(--blue-600);
}

[data-theme="dark"] .page-icon {
    color: #60a5fa;
}

.page-icon-svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: var(--blue-600);
}

[data-theme="dark"] .page-icon-svg {
    color: #60a5fa;
}

.page-name {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--text-dark);
    line-height: 1;
}

[data-theme="dark"] .page-name {
    color: #ffffff;
}

/* Notification Bell */
.nav-icon-btn {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--bg-gray-50);
    border: 2px solid var(--border-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-gray);
}

[data-theme="dark"] .nav-icon-btn {
    background: #252b3d;
    border-color: #3d4461;
    color: #e0e7ff;
}

.nav-icon-btn:hover {
    background: var(--blue-500);
    border-color: var(--blue-500);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

[data-theme="dark"] .nav-icon-btn:hover {
    background: #2563eb;
    border-color: #2563eb;
}

.notification-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #dc2626;
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 0.7rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--bg-white);
}

[data-theme="dark"] .notification-badge {
    border-color: #1a1f2e;
}

/* User Profile in Navbar */
.user-profile-nav {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.625rem 1.25rem;
    background: var(--bg-gray-50);
    border-radius: 12px;
    border: 2px solid var(--border-gray);
    transition: all 0.2s;
}

[data-theme="dark"] .user-profile-nav {
    background: #252b3d;
    border-color: #3d4461;
}

.user-profile-nav:hover {
    border-color: var(--blue-500);
    box-shadow: var(--shadow-sm);
}

.user-avatar-nav {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.user-name-nav {
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.2;
}

[data-theme="dark"] .user-name-nav {
    color: #ffffff;
}

.user-role-nav {
    font-size: 0.7rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    line-height: 1;
}

[data-theme="dark"] .user-role-nav {
    color: #b8c5e0;
}

/* Old top-header styles kept for compatibility */
.top-header {
    background: var(--bg-white);
    border-bottom: 2px solid var(--border-gray);
    padding: 1.25rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 50;
}

/* Simple Page Nav - White box, no border */
.admin-header {
    padding: 1.5rem 2rem;
}

.page-nav-simple {
    display: inline-flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1.5rem;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .page-nav-simple {
    background: #1a1f2e;
}

.page-nav-simple .platform-icon {
    font-size: 1.25rem;
    line-height: 1;
}

.page-nav-icon-sm {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: var(--blue-500);
}

[data-theme="dark"] .page-nav-icon-sm {
    color: #60a5fa;
}

.page-nav-title {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--blue-600);
    line-height: 1;
}

[data-theme="dark"] .page-nav-title {
    color: #60a5fa;
}

/* Old boxed style - kept for reference */
.page-nav-box {
    display: inline-flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1.5rem;
    background: transparent;
    border: 2px solid var(--blue-500);
    border-radius: 12px;
    transition: all 0.2s;
}

[data-theme="dark"] .page-nav-box {
    border-color: #60a5fa;
    background: rgba(37, 99, 235, 0.05);
}

.page-nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.page-nav-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: var(--shadow-md);
    flex-shrink: 0;
}

[data-theme="dark"] .page-nav-icon {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.page-nav-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.page-nav-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.page-nav-breadcrumb a {
    color: var(--text-gray);
    text-decoration: none;
    transition: all 0.2s;
}

[data-theme="dark"] .page-nav-breadcrumb a {
    color: #e0e7ff;
}

.page-nav-breadcrumb a:hover {
    color: var(--blue-600);
}

[data-theme="dark"] .page-nav-breadcrumb a:hover {
    color: #60a5fa;
}

.page-nav-breadcrumb .separator {
    color: var(--text-light);
    opacity: 0.5;
}

[data-theme="dark"] .page-nav-breadcrumb .separator {
    color: #94a3b8;
}

.page-nav-breadcrumb .current {
    color: var(--blue-600);
    font-weight: 700;
}

[data-theme="dark"] .page-nav-breadcrumb .current {
    color: #60a5fa;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-gray);
}

[data-theme="dark"] .breadcrumb {
    color: #ffffff;
}

.breadcrumb-item a {
    color: var(--text-gray);
    text-decoration: none;
}

[data-theme="dark"] .breadcrumb-item a {
    color: #ffffff;
}

.breadcrumb-item a:hover {
    color: var(--blue-600);
}

[data-theme="dark"] .breadcrumb-item a:hover {
    color: #60a5fa;
}

.breadcrumb-separator {
    color: var(--text-light);
}

[data-theme="dark"] .breadcrumb-separator {
    color: #b8c5e0;
}

.breadcrumb-current {
    color: var(--text-dark);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

[data-theme="dark"] .breadcrumb-current {
    color: #ffffff;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.notification-bell {
    position: relative;
    background: var(--bg-gray-50);
    border: 2px solid var(--border-gray);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.notification-bell:hover {
    background: var(--blue-500);
    color: white;
    border-color: var(--blue-500);
}

.notification-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #dc2626;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-white);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1.25rem;
    background: var(--bg-gray-50);
    border-radius: 16px;
    border: 2px solid var(--border-gray);
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.user-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-dark);
}

[data-theme="dark"] .user-name {
    color: #ffffff;
}

.user-role {
    font-size: 0.75rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

[data-theme="dark"] .user-role {
    color: #e0e7ff;
}

/* ===== PAGE CONTAINER ===== */
.page-container {
    flex: 1;
    padding: 2rem;
}

/* ===== TABS ===== */
.tab-navigation {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.875rem 1.75rem;
    background: var(--bg-white);
    border: 2px solid var(--border-gray);
    border-radius: 12px 12px 0 0;
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.tab-btn:hover {
    background: var(--bg-gray-50);
    border-color: var(--blue-500);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-md);
}

/* ===== SUBTABS ===== */
.subtab-bar {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    align-items: center;
}

.subtab-btn {
    padding: 0.75rem 1.5rem;
    background: var(--bg-white);
    border: 2px solid var(--border-gray);
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
}

.subtab-btn:hover {
    border-color: var(--blue-500);
}

.subtab-btn.active {
    background: var(--blue-500);
    color: white;
    border-color: var(--blue-500);
}

/* ===== FILTER BAR ===== */
.filter-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.filter-label {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-gray);
}

[data-theme="dark"] .filter-label {
    color: #e0e7ff;
}

.filter-btn {
    padding: 0.625rem 1.25rem;
    border-radius: 12px;
    border: 2px solid var(--border-gray);
    background: var(--bg-white);
    color: var(--text-dark);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

[data-theme="dark"] .filter-btn {
    background: #1a1f2e;
    color: #ffffff;
    border-color: #3d4461;
}

.filter-btn:hover {
    border-color: var(--blue-500);
    color: var(--blue-600);
    transform: translateY(-1px);
}

[data-theme="dark"] .filter-btn:hover {
    border-color: #60a5fa;
    color: #60a5fa;
}

.filter-btn.active {
    background: var(--blue-500);
    color: white;
    border-color: var(--blue-500);
    box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .filter-btn.active {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

/* ===== TABLE CONTAINER ===== */
.table-container {
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    padding: 1.75rem;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.platform-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.platform-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-dark);
    margin: 0;
}

[data-theme="dark"] .platform-title {
    color: #ffffff;
}

.total-entries {
    color: var(--text-gray);
    font-weight: 600;
    font-size: 0.95rem;
}

[data-theme="dark"] .total-entries {
    color: #e0e7ff;
}

.total-entries span {
    font-weight: 900;
    color: var(--text-dark);
}

[data-theme="dark"] .total-entries span {
    color: #ffffff;
}

/* ===== TABLES - MODERN REDESIGN WITH BORDERS ===== */
.table-responsive {
    overflow-x: auto;
    border-radius: 12px;
    margin-top: 0.5rem;
}

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 2px solid var(--border-gray);
    border-radius: 12px;
    overflow: hidden;
}

[data-theme="dark"] .data-table {
    border-color: #3d4461;
}

/* Modern gradient headers */
.data-table thead {
    background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
    color: white;
}

.data-table thead.youtube {
    background: linear-gradient(135deg, #dc2626, #ef4444);
}

.data-table thead.spotify {
    background: linear-gradient(135deg, #059669, #10b981);
}

.data-table thead.meta {
    background: linear-gradient(135deg, #4b5563, #6b7280);
}

.data-table thead.tiktok {
    background: linear-gradient(135deg, #000000, #1f2937);
}

.data-table th {
    padding: 1.125rem 1rem;
    text-align: left;
    font-weight: 900;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.data-table th:last-child {
    border-right: none;
}

.data-table th:first-child {
    border-top-left-radius: 10px;
}

.data-table th:last-child {
    border-top-right-radius: 10px;
}

/* Sortable header hover */
.data-table th.sortable {
    cursor: pointer;
    user-select: none;
    transition: all 0.2s;
}

.data-table th.sortable:hover {
    background: rgba(255, 255, 255, 0.15);
}

.data-table th.sortable span {
    margin-left: 0.5rem;
    opacity: 0.6;
    font-size: 0.7rem;
}

/* Modern table body with borders */
.data-table tbody {
    background: var(--bg-white);
}

.data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-gray);
    border-right: 1px solid var(--border-gray);
    font-size: 0.9rem;
    font-weight: 500;
}

[data-theme="dark"] .data-table td {
    border-bottom-color: #3d4461;
    border-right-color: #3d4461;
    color: #ffffff;
}

.data-table td:last-child {
    border-right: none;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.data-table tbody tr {
    transition: all 0.15s ease;
    background: var(--bg-white);
}

.data-table tbody tr:nth-child(even) {
    background: var(--bg-gray-50);
}

.data-table tbody tr:hover {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.05) 0%, rgba(96, 165, 250, 0.03) 100%);
    transform: translateX(2px);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.08);
}

[data-theme="dark"] .data-table tbody tr:hover {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.1) 0%, rgba(96, 165, 250, 0.05) 100%);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.data-table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 12px;
}

.data-table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 12px;
}

/* Modern input styling - seamless editing */
.data-table input {
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: 2px solid transparent;
    background: transparent;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.data-table input:hover {
    background: rgba(59, 130, 246, 0.03);
}

.data-table input:focus {
    border-color: var(--blue-500);
    background: var(--bg-white);
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

[data-theme="dark"] .data-table input:focus {
    background: var(--bg-gray-100);
}

/* Number inputs - right align */
.data-table input[type="number"] {
    text-align: right;
}

/* Hide number spinners */
.data-table input[type="number"]::-webkit-outer-spin-button,
.data-table input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.data-table input[type="number"] {
    -moz-appearance: textfield;
}

/* Date inputs */
.data-table input[type="date"] {
    cursor: pointer;
}

.data-table input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.data-table input[type="date"]:hover::-webkit-calendar-picker-indicator {
    opacity: 1;
}

[data-theme="dark"] .data-table input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
}

/* Readonly inputs - subtle styling */
.data-table input[readonly] {
    background: rgba(100, 116, 139, 0.05);
    color: var(--text-gray);
    cursor: not-allowed;
    font-weight: 700;
}

[data-theme="dark"] .data-table input[readonly] {
    background: rgba(100, 116, 139, 0.1);
}

.text-center {
    text-align: center !important;
}

.text-muted {
    color: var(--text-gray);
    font-weight: 500;
}

/* Modern action buttons */
.actions-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.actions-cell .btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 8px;
}

.actions-cell .btn-secondary {
    background: var(--bg-gray-100);
    color: var(--text-dark);
    border: 1px solid var(--border-gray);
}

.actions-cell .btn-secondary:hover {
    background: var(--bg-gray-50);
    border-color: var(--blue-500);
    color: var(--blue-600);
}

.actions-cell .btn-success {
    background: var(--green-500);
    color: white;
    border: none;
}

.actions-cell .btn-success:hover {
    background: #059669;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.actions-cell .btn-danger {
    background: var(--red-500);
    color: white;
    border: none;
}

.actions-cell .btn-danger:hover {
    background: #dc2626;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Info icon - modern tooltip style */
.info-i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--border-gray);
    background: var(--bg-gray-50);
    color: var(--text-gray);
    font-weight: 900;
    font-size: 0.7rem;
    cursor: help;
    transition: all 0.2s;
    margin-right: 0.5rem;
}

.info-i:hover {
    border-color: var(--blue-500);
    background: var(--blue-500);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Cell text display - modern typography */
.cell-text {
    font-weight: 600;
    color: var(--text-dark);
}

/* Empty state */
.data-table tbody tr td[colspan] {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-gray);
    font-weight: 600;
    font-size: 0.95rem;
}

/* Grand total row - special styling */
.grand-total-row {
    background: linear-gradient(90deg, var(--bg-gray-100) 0%, var(--bg-gray-50) 100%) !important;
    border-top: 3px solid var(--blue-500) !important;
    font-weight: 900 !important;
}

.grand-total-row td {
    padding: 1.25rem 1rem !important;
    font-size: 0.95rem !important;
    color: var(--text-dark) !important;
}

[data-theme="dark"] .grand-total-row {
    background: linear-gradient(90deg, var(--bg-gray-100) 0%, var(--bg-gray-50) 100%) !important;
}

/* Responsive table improvements */
@media (max-width: 768px) {
    .data-table th,
    .data-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }
    
    .actions-cell {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .actions-cell .btn {
        width: 100%;
        padding: 0.625rem 0.75rem;
    }
}


/* ===============================
   SPOTIFY REPORT SUMMARY CARDS (OLD LAYOUT)
   =============================== */
.summary-section {
    margin-bottom: 1.5rem;
}

.report-summary-wrap{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
  align-items: center;
}

/* 4 card kiri duduk dalam 2 kolum pertama */
.summary-left{
  grid-column: 1 / span 2;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 10px;
}

/* 3 card kanan duduk kolum ke-3 */
.summary-right{
  grid-column: 3 / span 1;
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

/* ✅ semua card sama size */
.summary-card{
  width: 100%;
  height: 78px;
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  overflow:hidden;
  border: 1px solid rgba(0,0,0,0.08);

  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
  padding: 8px 10px;

  transition: transform .15s ease, filter .15s ease;
}

[data-theme="dark"] .summary-card{
  border-color: rgba(255,255,255,0.10);
}

/* title */
.sc-top{
  font-weight: 800;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.95);
  line-height: 1.1;
  margin-bottom: 4px;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* value */
.sc-value{
  font-weight: 900;
  font-size: 1.45rem;
  line-height: 1;
  color:#fff;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Neutral cards with dark background and border */
.summary-card.neutral-card {
    background: #e5e7eb;
    border: 2px solid #d1d5db;
}

[data-theme="dark"] .summary-card.neutral-card {
    background: #374151;
    border-color: #4b5563;
}

.summary-card.neutral-card .sc-top {
    color: #9ca3af;
}

[data-theme="dark"] .summary-card.neutral-card .sc-top {
    color: #d1d5db;
}

.summary-card.neutral-card .sc-value {
    color: #1f2937;
}

[data-theme="dark"] .summary-card.neutral-card .sc-value {
    color: #ffffff;
}

/* Spotify Accepted - BLUE */
.summary-card.spotify-accepted {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    border: none;
}

[data-theme="dark"] .summary-card.spotify-accepted {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
}

.summary-card.spotify-accepted .sc-top,
.summary-card.spotify-accepted .sc-value {
    color: white;
}

/* Backclaim Accepted - ORANGE */
.summary-card.backclaim-accepted {
    background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
    border: none;
}

[data-theme="dark"] .summary-card.backclaim-accepted {
    background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
}

.summary-card.backclaim-accepted .sc-top,
.summary-card.backclaim-accepted .sc-value {
    color: white;
}

/* Colored cards for right column */
.summary-card.mg {
    background: linear-gradient(135deg, #a21caf 0%, #c026d3 100%);
    border: none;
}

[data-theme="dark"] .summary-card.mg {
    background: linear-gradient(135deg, #c026d3 0%, #d946ef 100%);
}

.summary-card.mg .sc-top,
.summary-card.mg .sc-value {
    color: white;
}

.summary-card.total-accepted {
    background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
    border: none;
}

[data-theme="dark"] .summary-card.total-accepted {
    background: linear-gradient(135deg, #14b8a6 0%, #2dd4bf 100%);
}

.summary-card.total-accepted .sc-top,
.summary-card.total-accepted .sc-value {
    color: white;
}

.summary-card.different {
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
    border: none;
}

[data-theme="dark"] .summary-card.different {
    background: linear-gradient(135deg, #22c55e 0%, #4ade80 100%);
}

.summary-card.different .sc-top,
.summary-card.different .sc-value {
    color: white;
}

/* ✅ MG card clickable style */
.summary-card.mg-clickable{
  cursor: pointer;
  position: relative;
}
.summary-card.mg-clickable:hover{
  filter: brightness(1.05);
  transform: translateY(-1px);
}
.summary-card.mg-clickable::after{
  content: "click to edit";
  position:absolute;
  bottom:6px;
  right:10px;
  font-size: 0.65rem;
  font-weight: 800;
  opacity: 0.6;
  color: rgba(255,255,255,0.9);
}

/* responsive */
@media (max-width: 900px){
  .report-summary-wrap{ grid-template-columns: 1fr; }
  .summary-left{
    grid-column:auto;
    grid-template-columns: 1fr;
    margin-top: 0;
  }
  .summary-right{ grid-column:auto; }
}

.summary-card.blue {
    background: var(--blue-500);
}

.summary-card.neutral {
    background: var(--bg-gray-100);
    border: 2px solid var(--border-gray);
}

.summary-card.neutral .sc-top {
    color: var(--text-gray);
}

[data-theme="dark"] .summary-card.neutral .sc-top {
    color: #e0e7ff;
}

.summary-card.neutral .sc-value {
    color: var(--text-dark);
}

[data-theme="dark"] .summary-card.neutral .sc-value {
    color: #ffffff;
}

.summary-card.orange {
    background: #fb8c00;
}

.summary-card.magenta {
    background: #8e124b;
}

.summary-card.teal {
    background: #00838f;
}

.summary-card.green {
    background: #43a047;
}

/* ===============================
   TIKTOK REPORT SUMMARY
   =============================== */
.tiktok-summary-wrap{
  margin-bottom: 14px;
  display:flex;
  justify-content:flex-start;
}

.summary-card.tiktok-royalty{
  max-width: 340px;
  background: linear-gradient(135deg, #111827, #374151);
}

[data-theme="dark"] .summary-card.tiktok-royalty{
  background: linear-gradient(135deg, #0b1220, #223454);
}

.tiktok-royalty-banner{
  width: 100%;
  border-radius: 14px;
  padding: 18px 16px;
  margin: 8px 0 18px 0;
  background: linear-gradient(135deg, #0b1220, #111827);
  box-shadow: var(--shadow-md);
  text-align:center;
}

.tiktok-royalty-banner .trb-title{
  color: rgba(255,255,255,0.85);
  font-weight: 900;
  letter-spacing: .5px;
}

.tiktok-royalty-banner .trb-value{
  color: #fff;
  font-weight: 900;
  font-size: 2rem;
  margin-top: 6px;
}

.tiktok-summary-wrap .summary-card{
  width: 100%;
  max-width: 420px;
  height: 78px;
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.08);
  background: linear-gradient(135deg, #111827, #374151);

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  padding: 8px 10px 8px 16px;
}

[data-theme="dark"] .tiktok-summary-wrap .summary-card{
  border-color: rgba(255,255,255,0.10);
  background: linear-gradient(135deg, #1e293b, #334155);
}

.tiktok-summary-wrap .summary-card .sc-top,
.tiktok-summary-wrap .summary-card .sc-value{
  text-align: left !important;
  align-self: flex-start;
  color: white;
}

/* ===============================
   REPORT LABEL SIDEBAR - COMPACT LEFT SIDE
   =============================== */
.report-label-wrap {
  margin-bottom: 1.5rem;
  max-width: 280px; /* ✅ Limit width - keep small */
}

.report-label-sidebar {
  background: var(--bg-white);
  border: 2px solid var(--border-gray);
  border-radius: 10px;
  padding: 0.875rem; /* ✅ Smaller padding */
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .report-label-sidebar {
  background: #1a2332;
  border-color: #3d4461;
}

.report-label-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem; /* ✅ Smaller margin */
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border-gray);
}

[data-theme="dark"] .report-label-head {
  border-bottom-color: #3d4461;
}

.report-label-head .title {
  font-size: 0.95rem; /* ✅ Smaller title */
  font-weight: 900;
  color: var(--text-dark);
  letter-spacing: 0.3px;
}

[data-theme="dark"] .report-label-head .title {
  color: #ffffff;
}

/* ✅ Smaller "+ Label" button */
.report-label-head .btn {
  padding: 0.5rem 0.875rem;
  font-size: 0.8rem;
  font-weight: 800;
  border-radius: 8px;
}

.label-list {
  display: flex;
  flex-direction: column;
  gap: 0.375rem; /* ✅ Smaller gap */
}

.label-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 0.75rem; /* ✅ Smaller padding */
  background: var(--bg-gray-50);
  border: 2px solid transparent;
  border-radius: 8px; /* ✅ Smaller radius */
  cursor: pointer;
  transition: all 0.2s ease;
}

[data-theme="dark"] .label-item {
  background: #252b3d;
}

.label-item:hover {
  background: var(--bg-gray-100);
  border-color: var(--blue-500);
  transform: translateX(2px); /* ✅ Smaller slide */
}

[data-theme="dark"] .label-item:hover {
  background: #2f3848;
  border-color: #60a5fa;
}

.label-item.active {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(96, 165, 250, 0.05) 100%);
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

[data-theme="dark"] .label-item.active {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(96, 165, 250, 0.08) 100%);
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.label-name {
  display: flex;
  align-items: center;
  gap: 0.5rem; /* ✅ Smaller gap */
  flex: 1;
}

.label-dot {
  width: 8px; /* ✅ Smaller dot */
  height: 8px;
  border-radius: 50%;
  background: var(--text-gray);
  flex-shrink: 0;
}

[data-theme="dark"] .label-dot {
  background: #9ca3af;
}

.label-item.active .label-dot {
  background: var(--blue-500);
  box-shadow: 0 0 6px rgba(59, 130, 246, 0.5); /* ✅ Smaller glow */
}

[data-theme="dark"] .label-item.active .label-dot {
  background: #60a5fa;
}

.label-name span {
  font-weight: 700;
  font-size: 0.85rem; /* ✅ Smaller text */
  color: var(--text-dark);
}

[data-theme="dark"] .label-name span {
  color: #ffffff;
}

.label-item.active .label-name span {
  color: var(--blue-600);
  font-weight: 900;
}

[data-theme="dark"] .label-item.active .label-name span {
  color: #60a5fa;
}

.label-actions {
  display: flex;
  align-items: center;
  gap: 0.375rem; /* ✅ Smaller gap */
  opacity: 0;
  transition: opacity 0.2s ease;
}

.label-item:hover .label-actions {
  opacity: 1;
}

.lbl-icon-btn {
  width: 28px; /* ✅ Smaller button */
  height: 28px;
  border-radius: 6px; /* ✅ Smaller radius */
  border: none;
  background: var(--bg-white);
  color: var(--text-dark);
  font-size: 0.875rem; /* ✅ Smaller icon */
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-weight: 700;
}

[data-theme="dark"] .lbl-icon-btn {
  background: #1a2332;
  color: #ffffff;
}

.lbl-icon-btn:hover {
  background: var(--blue-500);
  color: white;
  transform: scale(1.1);
}

[data-theme="dark"] .lbl-icon-btn:hover {
  background: #3b82f6;
}

.lbl-icon-btn.danger:hover {
  background: #dc2626;
  color: white;
}

[data-theme="dark"] .lbl-icon-btn.danger:hover {
  background: #ef4444;
}

.label-empty {
  padding: 1.5rem 1rem; /* ✅ Smaller padding */
  text-align: center;
  color: var(--text-gray);
  font-weight: 600;
  font-size: 0.85rem; /* ✅ Smaller text */
}

[data-theme="dark"] .label-empty {
  color: #9ca3af;
}

.label-empty b {
  color: var(--blue-600);
  font-weight: 900;
}

[data-theme="dark"] .label-empty b {
  color: #60a5fa;
}

/* ===============================
   PROFESSIONAL LOGIN PAGE - CENTERED FORM
   =============================== */
.login-page-modern {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 50%, #bfdbfe 100%);
    padding: 2rem 1rem;
    position: relative;
}

[data-theme="dark"] .login-page-modern {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
}

.login-card-modern {
    width: 100%;
    max-width: 480px;
    background: var(--bg-white);
    border-radius: 1.5rem;
    padding: 3rem 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    border: 2px solid var(--border-gray);
}

[data-theme="dark"] .login-card-modern {
    background: #1a2332;
    border-color: #3d4461;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* Brand Section */
.login-brand {
    text-align: center;
    margin-bottom: 2.5rem;
}

.brand-logo-modern {
    width: 96px;
    height: 96px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

[data-theme="dark"] .brand-logo-modern {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
}

.brand-title-modern {
    font-size: 2rem;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

[data-theme="dark"] .brand-title-modern {
    color: #ffffff;
}

.brand-desc-modern {
    font-size: 1rem;
    color: var(--text-gray);
    font-weight: 600;
}

[data-theme="dark"] .brand-desc-modern {
    color: #9ca3af;
}

/* Alert */
.alert-modern {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem 1.25rem;
    border-radius: 0.875rem;
    margin-bottom: 1.75rem;
}

.alert-modern.error {
    background: rgba(239, 68, 68, 0.08);
    border: 2px solid rgba(239, 68, 68, 0.2);
}

[data-theme="dark"] .alert-modern.error {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.3);
}

.alert-icon-modern {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: rgba(239, 68, 68, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #dc2626;
}

[data-theme="dark"] .alert-icon-modern {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.alert-modern span {
    color: #dc2626;
    font-weight: 700;
    font-size: 0.95rem;
}

[data-theme="dark"] .alert-modern span {
    color: #f87171;
}

/* Form */
.login-form-modern {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.field-modern {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.label-modern {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: 0.2px;
}

[data-theme="dark"] .label-modern {
    color: #e5edff;
}

.input-modern-wrap {
    position: relative;
}

.input-icon-modern {
    position: absolute;
    left: 1.125rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
    z-index: 1;
}

.input-modern {
    width: 100%;
    padding: 1rem 1.125rem 1rem 3.25rem;
    border: 2px solid var(--border-gray);
    border-radius: 0.875rem;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: var(--text-dark);
    background: var(--bg-white);
    transition: all 0.2s ease;
}

[data-theme="dark"] .input-modern {
    background: #252b3d;
    border-color: #3d4461;
    color: #ffffff;
}

.input-modern:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

[data-theme="dark"] .input-modern:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.15);
}

.input-modern::placeholder {
    color: #9ca3af;
    font-weight: 500;
}

.input-modern:focus ~ .input-icon-modern {
    color: #3b82f6;
}

[data-theme="dark"] .input-modern:focus ~ .input-icon-modern {
    color: #60a5fa;
}

/* Captcha */
.captcha-modern {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.125rem 1.25rem;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 2px solid #bfdbfe;
    border-radius: 0.875rem;
}

[data-theme="dark"] .captcha-modern {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    border-color: #3b82f6;
}

.captcha-display {
    flex: 1;
    text-align: center;
}

.captcha-text {
    font-family: 'Courier New', monospace;
    font-size: 1.75rem;
    font-weight: 900;
    color: #1e40af;
    letter-spacing: 8px;
    user-select: none;
}

[data-theme="dark"] .captcha-text {
    color: #dbeafe;
}

.captcha-refresh {
    width: 40px;
    height: 40px;
    background: rgba(59, 130, 246, 0.15);
    border: none;
    border-radius: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

[data-theme="dark"] .captcha-refresh {
    background: rgba(96, 165, 250, 0.2);
    color: #93c5fd;
}

.captcha-refresh:hover {
    background: rgba(59, 130, 246, 0.25);
    transform: rotate(180deg);
}

[data-theme="dark"] .captcha-refresh:hover {
    background: rgba(96, 165, 250, 0.3);
}

.captcha-refresh:active {
    transform: rotate(180deg) scale(0.95);
}

/* Submit Button */
.btn-submit-modern {
    width: 100%;
    padding: 1.125rem 1.5rem;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    border: none;
    border-radius: 0.875rem;
    color: white;
    font-size: 1.05rem;
    font-weight: 900;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

[data-theme="dark"] .btn-submit-modern {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-submit-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

[data-theme="dark"] .btn-submit-modern:hover {
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.5);
}

.btn-submit-modern:active {
    transform: translateY(0);
}

/* Demo Info */
.demo-info-modern {
    margin-top: 2rem;
    padding: 1.25rem;
    background: var(--bg-gray-50);
    border: 2px solid var(--border-gray);
    border-radius: 0.875rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

[data-theme="dark"] .demo-info-modern {
    background: #252b3d;
    border-color: #3d4461;
}

.demo-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
}

[data-theme="dark"] .demo-icon {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

.demo-info-modern strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

[data-theme="dark"] .demo-info-modern strong {
    color: #ffffff;
}

.demo-info-modern p {
    font-size: 0.9rem;
    color: var(--text-gray);
    font-weight: 600;
    margin: 0;
}

[data-theme="dark"] .demo-info-modern p {
    color: #9ca3af;
}

.demo-info-modern code {
    background: var(--bg-white);
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    color: #3b82f6;
    font-size: 0.875rem;
}

[data-theme="dark"] .demo-info-modern code {
    background: #1a2332;
    color: #93c5fd;
}

/* Responsive */
@media (max-width: 480px) {
    .login-card-modern {
        padding: 2.5rem 1.75rem;
    }

    .brand-logo-modern {
        width: 80px;
        height: 80px;
    }

    .brand-title-modern {
        font-size: 1.75rem;
    }

    .captcha-text {
        font-size: 1.5rem;
        letter-spacing: 6px;
    }
}
.top-icon{
width:20px;
height:20px;
object-fit:contain;
vertical-align:middle;
}

.page-indicator{
display:flex;
align-items:center;
gap:8px;
}

.nav-dropdown-item{
display:flex;
align-items:center;
gap:10px;
}

.platform-icon{
width:18px;
height:18px;
object-fit:contain;
display:inline-block;
flex-shrink:0;
}
