@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    /* Premium Color Palette - Deep Ocean */
    --primary: #6C5CE7;
    --primary-hover: #5A4BD1;
    --primary-light: rgba(108, 92, 231, 0.1);
    --primary-gradient: linear-gradient(135deg, #6C5CE7 0%, #a29bfe 100%);
    
    --secondary: #E9EDF7;
    --accent: #00CEC9;
    --accent-light: rgba(0, 206, 201, 0.1);
    
    --success: #00B894;
    --success-light: rgba(0, 184, 148, 0.1);
    --warning: #FDCB6E;
    --warning-light: rgba(253, 203, 110, 0.15);
    --danger: #E17055;
    --danger-light: rgba(225, 112, 85, 0.1);
    --info: #74B9FF;
    --info-light: rgba(116, 185, 255, 0.1);
    
    /* Backgrounds */
    --bg-main: #F0F3F8;
    --bg-card: #FFFFFF;
    --bg-dark: #2D3436;
    
    /* Typography  */
    --text-main: #2D3436;
    --text-secondary: #636E72;
    --text-muted: #B2BEC3;
    --text-light: #FFFFFF;
    
    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    /* Borders & Radius */
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --radius-full: 50%;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.08);
    --shadow-primary: 0 8px 24px rgba(108, 92, 231, 0.25);
    --shadow-hover: 0 12px 36px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-fast: all 0.15s ease;
    
    /* Layout - Mobile First */
    --sidebar-width: 280px;
    --header-height: 70px;
}

/* ========== RESET ========== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
    font-weight: 700;
    line-height: 1.3;
}

h1 { font-size: 28px; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }
h4 { font-size: 16px; }

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

/* ========== LAYOUT - MOBILE FIRST ========== */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* ========== SIDEBAR ========== */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, #2D3436 0%, #1E272E 100%);
    position: fixed;
    height: 100vh;
    z-index: 100;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    /* Mobile: Hidden by default */
    transform: translateX(-100%);
}

.sidebar.active {
    transform: translateX(0);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
    backdrop-filter: blur(4px);
}

.sidebar-overlay.active {
    display: block;
}

.sidebar-header {
    height: 80px;
    display: flex;
    align-items: center;
    padding: 0 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-brand {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    color: var(--text-light);
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-brand .brand-icon {
    width: 38px;
    height: 38px;
    background: var(--primary-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.sidebar-brand span {
    color: var(--accent);
}

.sidebar-close {
    display: flex;
    margin-left: auto;
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    overflow-y: auto;
}

.nav-label {
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 12px 16px 8px;
    margin-top: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    border-radius: var(--radius-sm);
    margin-bottom: 3px;
    transition: var(--transition);
    font-size: 14px;
    gap: 12px;
}

.nav-item i {
    font-size: 17px;
    width: 22px;
    text-align: center;
    transition: var(--transition);
}

.nav-item:hover {
    color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.06);
}

.nav-item.active {
    background: var(--primary-gradient);
    color: var(--text-light);
    box-shadow: var(--shadow-primary);
    font-weight: 600;
}

.nav-item.active i {
    color: var(--text-light);
}

.sidebar-footer {
    padding: 16px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    background: rgba(225, 112, 85, 0.15);
    color: var(--danger);
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-size: 14px;
}

.logout-btn:hover {
    background: var(--danger);
    color: white;
}

/* ========== MAIN CONTENT ========== */
.main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    /* Mobile: full width */
    width: 100%;
    min-width: 0;
}

/* ========== TOP HEADER ========== */
.top-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--bg-main);
    border: none;
    color: var(--text-main);
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
}

.menu-toggle:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.page-title {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.page-title strong {
    font-size: 20px;
    color: var(--text-main);
    display: block;
    margin-top: 2px;
    font-family: var(--font-heading);
    text-transform: none;
    letter-spacing: -0.3px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-main);
    padding: 6px 12px 6px 6px;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
}

.profile-pill:hover {
    box-shadow: var(--shadow-md);
}

.profile-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--primary-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    font-family: var(--font-heading);
}

.profile-info {
    display: none;
}

.profile-info .name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
}

.profile-info .role {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: capitalize;
}

/* ========== CONTENT AREA ========== */
.content-area {
    padding: 16px;
    flex: 1;
}

/* ========== CARDS ========== */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 16px;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--secondary);
    flex-wrap: wrap;
    gap: 8px;
}

.card-header h3 {
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-header h3 i {
    color: var(--primary);
    font-size: 16px;
}

/* ========== KPI / METRIC CARDS ========== */
.kpi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.metric-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.metric-card.primary::before { background: var(--primary-gradient); }
.metric-card.success::before { background: linear-gradient(90deg, #00B894, #55E6C1); }
.metric-card.warning::before { background: linear-gradient(90deg, #FDCB6E, #F9CA24); }
.metric-card.danger::before { background: linear-gradient(90deg, #E17055, #FF7979); }
.metric-card.info::before { background: linear-gradient(90deg, #74B9FF, #A29BFE); }
.metric-card.accent::before { background: linear-gradient(90deg, #00CEC9, #81ECEC); }

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

.metric-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 12px;
}

.icon-primary { background: var(--primary-light); color: var(--primary); }
.icon-success { background: var(--success-light); color: var(--success); }
.icon-warning { background: var(--warning-light); color: #E67E22; }
.icon-danger { background: var(--danger-light); color: var(--danger); }
.icon-info { background: var(--info-light); color: var(--info); }
.icon-accent { background: var(--accent-light); color: var(--accent); }

.metric-title {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-value {
    color: var(--text-main);
    font-size: 22px;
    font-weight: 800;
    font-family: var(--font-heading);
    line-height: 1.2;
}

.metric-value.small {
    font-size: 16px;
}

/* Gradient Card */
.metric-card.gradient {
    background: var(--primary-gradient);
    border: none;
}

.metric-card.gradient .metric-title { color: rgba(255, 255, 255, 0.8); }
.metric-card.gradient .metric-value { color: white; }
.metric-card.gradient .metric-icon { background: rgba(255, 255, 255, 0.2); color: white; }
.metric-card.gradient::before { display: none; }

/* ========== GRID LAYOUTS ========== */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 16px; }
.grid-7-5 { display: grid; grid-template-columns: 1fr; gap: 16px; }

/* ========== TABLES ========== */
.table-responsive {
    overflow-x: auto;
    width: 100%;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-md);
}

.v-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.v-table th {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-align: left;
    padding: 12px 16px;
    border-bottom: 2px solid var(--secondary);
    white-space: nowrap;
    background: var(--bg-main);
}

.v-table td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    color: var(--text-main);
    font-weight: 500;
    font-size: 13px;
    vertical-align: middle;
}

.v-table tr:last-child td {
    border-bottom: none;
}

.v-table tr:hover td {
    background: rgba(108, 92, 231, 0.02);
}

.v-table .actions {
    display: flex;
    gap: 6px;
    white-space: nowrap;
}

/* ========== BADGES ========== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    white-space: nowrap;
}

.badge-success { background: var(--success-light); color: var(--success); }
.badge-warning { background: var(--warning-light); color: #E67E22; }
.badge-danger { background: var(--danger-light); color: var(--danger); }
.badge-primary { background: var(--primary-light); color: var(--primary); }
.badge-info { background: var(--info-light); color: #0984E3; }
.badge-secondary { background: var(--secondary); color: var(--text-secondary); }

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    white-space: nowrap;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(108, 92, 231, 0.35);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: #DDE4F2;
}

.btn-success { background: var(--success); color: white; }
.btn-success:hover { background: #00A383; }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #C0392B; }
.btn-warning { background: var(--warning); color: var(--text-main); }
.btn-info { background: var(--info); color: white; }

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--primary);
    color: var(--primary);
}

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

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 8px;
}

.btn-icon {
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 8px;
    font-size: 14px;
}

.btn-icon.sm {
    width: 28px;
    height: 28px;
    font-size: 12px;
}

/* ========== FORMS ========== */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--text-main);
    font-size: 13px;
}

.form-label .required {
    color: var(--danger);
}

.form-control {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1.5px solid #E0E5F2;
    border-radius: var(--radius-sm);
    background: var(--bg-main);
    font-family: inherit;
    font-size: 14px;
    color: var(--text-main);
    transition: var(--transition);
    font-weight: 500;
    appearance: none;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px var(--primary-light);
}

select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23636E72' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

textarea.form-control {
    height: auto;
    min-height: 100px;
    padding: 12px 14px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.form-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ========== ALERTS ========== */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideInDown 0.4s ease;
}

@keyframes slideInDown {
    from { opacity: 0; transform: translateY(-16px); }
    to { opacity: 1; transform: translateY(0); }
}

.alert-success { background: #E8FFF3; color: var(--success); border-left: 4px solid var(--success); }
.alert-error { background: #FFF2F0; color: var(--danger); border-left: 4px solid var(--danger); }
.alert-warning { background: #FFF9E6; color: #E67E22; border-left: 4px solid var(--warning); }
.alert-info { background: #EBF5FF; color: #0984E3; border-left: 4px solid var(--info); }

/* ========== LOGIN PAGE ========== */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1E272E 0%, #2D3436 50%, #1E272E 100%);
    position: relative;
    overflow: hidden;
    padding: 16px;
}

.login-blob-1 {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: var(--primary-gradient);
    top: -150px;
    right: -150px;
    filter: blur(100px);
    opacity: 0.2;
    animation: floatBlob 8s ease-in-out infinite;
}

.login-blob-2 {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00CEC9, #55E6C1);
    bottom: -100px;
    left: -100px;
    filter: blur(80px);
    opacity: 0.15;
    animation: floatBlob 10s ease-in-out infinite reverse;
}

@keyframes floatBlob {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -30px) scale(1.05); }
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    padding: 36px 28px;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-logo {
    text-align: center;
    margin-bottom: 28px;
}

.login-logo .logo-icon {
    width: 56px;
    height: 56px;
    background: var(--primary-gradient);
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    margin-bottom: 12px;
    box-shadow: var(--shadow-primary);
}

.login-logo h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 4px;
}

.login-logo p {
    font-size: 13px;
    color: var(--text-muted);
}

.login-card .form-control {
    height: 50px;
    border-radius: var(--radius-md);
}

.login-card .btn-primary {
    width: 100%;
    height: 50px;
    font-size: 15px;
    border-radius: var(--radius-md);
    margin-top: 8px;
}

.login-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 12px;
    color: var(--text-muted);
}

/* ========== EMPTY STATE ========== */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

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

.empty-state p {
    font-size: 14px;
    font-weight: 500;
}

/* ========== UTILITIES ========== */
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-xs { gap: 4px; }
.gap-sm { gap: 8px; }
.gap-md { gap: 16px; }
.gap-lg { gap: 24px; }
.mt-xs { margin-top: 4px; }
.mt-sm { margin-top: 8px; }
.mt-md { margin-top: 16px; }
.mt-lg { margin-top: 24px; }
.mb-xs { margin-bottom: 4px; }
.mb-sm { margin-bottom: 8px; }
.mb-md { margin-bottom: 16px; }
.mb-lg { margin-bottom: 24px; }
.text-bold { font-weight: 700; }
.text-semibold { font-weight: 600; }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: #E67E22; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-sm { font-size: 12px; }
.text-xs { font-size: 11px; }
.text-lg { font-size: 16px; }
.w-full { width: 100%; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hidden-mobile { display: none; }
.visible-mobile { display: block; }

/* ========== CHART CONTAINER ========== */
.chart-container {
    position: relative;
    width: 100%;
    height: 250px;
}

/* ========== STATUS DOT ========== */
.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
}

.status-dot.available { background: var(--success); }
.status-dot.booked { background: var(--warning); }
.status-dot.sold { background: var(--danger); }

/* ========== PROGRESS BAR ========== */
.progress-container {
    width: 100%;
    background: var(--secondary);
    border-radius: 50px;
    height: 6px;
    overflow: hidden;
    margin-top: 6px;
}

.progress-bar {
    height: 100%;
    border-radius: 50px;
    background: var(--primary-gradient);
    transition: width 0.6s ease;
}

.progress-bar.success { background: linear-gradient(90deg, #00B894, #55E6C1); }
.progress-bar.warning { background: linear-gradient(90deg, #FDCB6E, #F9CA24); }
.progress-bar.danger { background: linear-gradient(90deg, #E17055, #FF7979); }

/* ========== STOK BAR ========== */
.stok-bar {
    display: flex;
    border-radius: 50px;
    overflow: hidden;
    height: 8px;
    background: var(--secondary);
}

.stok-bar .available { background: var(--success); }
.stok-bar .booked { background: var(--warning); }
.stok-bar .sold { background: var(--danger); }

/* ========== FILE PREVIEW ========== */
.file-preview {
    width: 120px;
    height: 80px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    border: 2px solid var(--secondary);
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94A3B8; }

/* ====================================================
   RESPONSIVE - TABLET (>= 768px)
   ==================================================== */
@media (min-width: 768px) {
    .content-area {
        padding: 24px;
    }

    .kpi-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }

    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-7-5 { grid-template-columns: 7fr 5fr; }

    .form-row {
        grid-template-columns: 1fr 1fr;
    }

    .top-header {
        padding: 0 24px;
    }

    .profile-info {
        display: block;
    }

    .chart-container {
        height: 300px;
    }

    .metric-value {
        font-size: 26px;
    }

    .hidden-mobile { display: block; }
    .visible-mobile { display: none; }
}

/* ====================================================
   RESPONSIVE - DESKTOP (>= 1024px)
   ==================================================== */
@media (min-width: 1024px) {
    .sidebar {
        transform: translateX(0);
    }

    .sidebar-overlay {
        display: none !important;
    }

    .sidebar-close {
        display: none;
    }

    .menu-toggle {
        display: none;
    }

    .main-wrapper {
        margin-left: var(--sidebar-width);
    }

    .content-area {
        padding: 28px 32px;
    }

    .top-header {
        padding: 0 32px;
    }

    .card {
        padding: 24px;
    }

    h1 { font-size: 32px; }

    .page-title strong {
        font-size: 24px;
    }

    .chart-container {
        height: 320px;
    }
}

/* ====================================================
   RESPONSIVE - LARGE DESKTOP (>= 1280px)
   ==================================================== */
@media (min-width: 1280px) {
    .content-area {
        padding: 32px 40px;
    }

    .kpi-grid {
        gap: 20px;
    }

    .metric-card {
        padding: 20px;
    }
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.fade-in { animation: fadeIn 0.4s ease; }
.scale-in { animation: scaleIn 0.3s ease; }

/* ========== DATA LABEL MOBILE ========== */
.data-label {
    display: inline;
    font-weight: 700;
    color: var(--text-muted);
    font-size: 11px;
    text-transform: uppercase;
    margin-right: 4px;
}

@media (min-width: 768px) {
    .data-label {
        display: none;
    }
}

/* ========== MOBILE CARDS VIEW FOR TABLE ========== */
.mobile-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-card-item {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 16px;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: var(--shadow-sm);
}

.mobile-card-item .item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.mobile-card-item .item-title {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-main);
}

.mobile-card-item .item-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 13px;
}

.mobile-card-item .item-label {
    color: var(--text-muted);
    font-weight: 500;
}

.mobile-card-item .item-value {
    font-weight: 600;
    color: var(--text-main);
}

.mobile-card-item .item-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--secondary);
}

@media (min-width: 768px) {
    .mobile-cards {
        display: none;
    }
}

.desktop-table {
    display: none;
}

@media (min-width: 768px) {
    .desktop-table {
        display: block;
    }
}

/* ========== DATATABLES PROFESSIONAL STYLING ========== */
.dataTables_wrapper {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Header Controls (Length & Search) */
.dt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.dt-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.dataTables_wrapper .dataTables_length, 
.dataTables_wrapper .dataTables_filter {
    display: inline-flex;
    align-items: center;
}

.dataTables_wrapper .dataTables_length select {
    padding: 10px 36px 10px 16px;
    border: 1.5px solid #E2E8F0;
    border-radius: 12px;
    background-color: #F8FAFC;
    color: var(--text-main);
    font-weight: 600;
    font-size: 13px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.dataTables_wrapper .dataTables_length select:focus {
    outline: none;
    border-color: var(--primary);
    background-color: #FFFFFF;
    box-shadow: 0 0 0 4px var(--primary-light);
}

.dataTables_wrapper .dataTables_filter input {
    padding: 10px 16px;
    border: 1.5px solid #E2E8F0;
    border-radius: 12px;
    background-color: #F8FAFC;
    color: var(--text-main);
    font-weight: 500;
    font-size: 13px;
    margin-left: 0.75rem;
    width: 240px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.dataTables_wrapper .dataTables_filter input:focus {
    outline: none;
    border-color: var(--primary);
    background-color: #FFFFFF;
    box-shadow: 0 0 0 4px var(--primary-light);
    width: 280px;
}

/* Professional Table Styling */
table.dataTable {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 14px !important;
    overflow: hidden;
    width: 100% !important;
    margin-bottom: 1rem !important;
    box-shadow: var(--shadow-md);
}

table.dataTable thead th {
    background-color: #F8FAFC !important;
    color: #475569 !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.75px;
    border-bottom: 2px solid #E2E8F0 !important;
    padding: 16px 14px !important;
    text-align: left;
}

table.dataTable tbody td {
    padding: 16px 14px !important;
    border-bottom: 1px solid #F1F5F9 !important;
    background-color: #FFFFFF;
    color: #334155;
}

table.dataTable tbody tr:last-child td {
    border-bottom: none !important;
}

table.dataTable tbody tr:hover td {
    background-color: #F8FAFC !important;
}

/* Footer Controls (Info & Paginate) */
.dataTables_wrapper .dataTables_info {
    padding-top: 0.5rem;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 13px;
}

.dataTables_wrapper .dataTables_paginate {
    padding-top: 0.5rem;
    display: flex;
    gap: 6px;
    justify-content: flex-end;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 8px 16px;
    border-radius: 10px !important;
    border: 1px solid transparent !important;
    background: #F1F5F9 !important;
    color: #475569 !important;
    font-weight: 700;
    font-size: 13px;
    transition: var(--transition);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #E2E8F0 !important;
    color: #1E293B !important;
    border-color: transparent !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current, 
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: var(--primary-gradient) !important;
    color: #FFFFFF !important;
    border-color: transparent !important;
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.3) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:active {
    background: #F8FAFC !important;
    color: #94A3B8 !important;
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
}
