/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   HRMS PRO â€” Global Design System
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;600;700;800&display=swap');

:root,
[data-theme="dark"] {
    /* Color Palette */
    --primary: var(--primary-color, #6366f1);
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --secondary: #10b981;
    --secondary-light: #34d399;
    --warning: #f59e0b;
    --danger: #ef4444;
    --danger-light: #fca5a5;
    --info: #38bdf8;
    --success: #10b981;

    /* Dark Theme Surfaces */
    --bg-base: #0b0f1a;
    --bg-surface: #111827;
    --bg-elevated: #1e293b;
    --bg-card: #1a2235;

    /* Text */
    --text-primary: #f1f5f9;
    --text-muted: #94a3b8;
    --text-faint: #475569;

    /* Borders & Glass */
    --border: rgba(255, 255, 255, 0.08);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-md: rgba(255, 255, 255, 0.12);
    --glass-bg: rgba(30, 41, 59, 0.6);

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;

    /* Transitions */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --transition: all 0.25s var(--ease);

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 24px rgba(99, 102, 241, 0.25);

    /* Primary color alias */
    --primary-color: #6366f1;
}

/* â”€â”€ Light Theme â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
[data-theme="light"] {
    --bg-base: #f0f4f8;
    --bg-surface: #ffffff;
    --bg-elevated: #f8fafc;
    --bg-card: #ffffff;

    --text-primary: #0f172a;
    --text-muted: #64748b;
    --text-faint: #94a3b8;

    --border: rgba(0, 0, 0, 0.08);
    --border-color: rgba(0, 0, 0, 0.1);
    --border-md: rgba(0, 0, 0, 0.12);
    --glass-bg: rgba(255, 255, 255, 0.8);

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 24px rgba(99, 102, 241, 0.15);
}

[data-theme="light"] body {
    background: var(--bg-base);
    color: var(--text-primary);
}

[data-theme="light"] .sidebar {
    background: #ffffff;
    border-right: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .nav-item {
    color: #475569;
}

[data-theme="light"] .nav-item:hover {
    background: #f1f5f9;
    color: var(--primary);
}

[data-theme="light"] .nav-item.active {
    background: rgba(99, 102, 241, 0.08);
    color: var(--primary);
}

[data-theme="light"] .sidebar-logo h1 {
    color: #0f172a;
}

[data-theme="light"] .top-header {
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .data-table thead th {
    background: #f8fafc;
}

[data-theme="light"] input,
[data-theme="light"] select,
[data-theme="light"] textarea {
    background: #f8fafc;
    border-color: rgba(0, 0, 0, 0.12);
    color: #0f172a;
}

[data-theme="light"] .modal {
    background: #ffffff;
    color: #0f172a;
}

[data-theme="light"] .stat-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .enquiry-card,
[data-theme="light"] .admin-sidebar,
[data-theme="light"] .admin-main,
[data-theme="light"] .admin-nav {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .admin-table-wrapper {
    background: #f8fafc;
}

[data-theme="light"] .dt-table th {
    background: #f1f5f9;
}

[data-theme="light"] .dt-table td {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .list-item:hover {
    background: #f1f5f9;
}

[data-theme="light"] .list-item.active {
    background: rgba(99, 102, 241, 0.1);
}

[data-theme="light"] .nav-section-label {
    color: #94a3b8;
}

[data-theme="light"] .glass {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .glass-select {
    background: #ffffff !important;
    color: #0f172a !important;
}

[data-theme="light"] .data-table tbody tr:hover {
    background: #f1f5f9;
}

/* ── Broadcast Banner ────────────────── */
.broadcast-banner {
    background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: white;
    padding: 10px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 500;
    z-index: 1001;
    animation: slideDown 0.4s var(--ease);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.banner-content {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
}
.banner-close {
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}
.banner-close:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

/* ────────────────────────────────────── */
.theme-toggle {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    width: 36px;
    height: 36px;
}

.theme-toggle:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.theme-toggle i {
    width: 16px;
    height: 16px;
}

/* Theme transition for smooth switching */
*,
*::before,
*::after {
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.1s ease;
}



/* â”€â”€ Reset â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    zoom: 0.75;
    height: 100%;
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg-base);
    color: var(--text-primary);
    overflow: hidden;
    line-height: 1.6;
    height: 100%;
    width: 100%;
    margin: 0;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: 'Outfit', sans-serif;
    line-height: 1.25;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
}

input,
select,
textarea {
    font-family: inherit;
    outline: none;
}

/* â”€â”€ Scrollbar â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--bg-elevated);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-faint);
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â• LOGIN â•â•â•â•â•â•â•â•â•â•â•â•â• */
.login-screen {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-base);
    background-size: cover;
    background-position: center;
    z-index: 1000;
}

.login-screen::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 40%, rgba(26, 16, 64, 0.4) 0%, rgba(11, 15, 26, 0.7) 100%);
    background: inherit; /* Fallback to JS provided bg */
    filter: brightness(0.6);
}

.login-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.login-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.25;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: var(--primary);
    top: -100px;
    left: -100px;
    animation: float 8s ease-in-out infinite;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary);
    bottom: -100px;
    right: -50px;
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-30px) scale(1.05);
    }
}

/* ── Modern Form Controls ────────────────── */
.modern-input {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    color: var(--text-primary) !important;
    font-size: 0.9rem !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05) !important;
    width: 100%;
}

.modern-input:focus {
    background: rgba(255, 255, 255, 0.07) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15), inset 0 2px 4px rgba(0,0,0,0.05) !important;
    outline: none !important;
    transform: translateY(-1px);
}

.modern-input::placeholder {
    color: var(--text-muted);
    opacity: 0.5;
}

select.modern-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px !important;
}

select.modern-input option {
    background: #111827; /* Dark theme default */
    color: white;
}

[data-theme="light"] select.modern-input option {
    background: #ffffff;
    color: #111827;
}

.brand-card {
    transition: transform 0.3s, box-shadow 0.3s;
}
.brand-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.login-card {
    position: relative;
    z-index: 1;
    background: rgba(17, 24, 39, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-md);
    border-radius: var(--radius-xl);
    padding: 48px 44px;
    width: 420px;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    animation: slideUp 0.5s var(--ease);
}

@keyframes slideUp {
    from {
        transform: translateY(24px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 700;
}

.brand-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    box-shadow: var(--shadow-glow);
}

.login-card h1 {
    font-size: 26px;
    margin-bottom: 6px;
}

.login-card>.login-header>p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 32px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-faint);
    width: 16px;
    pointer-events: none;
}

.input-with-icon input {
    width: 100%;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 13px 14px 13px 42px;
    color: var(--text-primary);
    font-size: 14px;
    transition: var(--transition);
}

.input-with-icon input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.btn-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border-radius: var(--radius-md);
    padding: 14px;
    font-size: 15px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
    margin-top: 8px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.45);
}

.login-hint {
    text-align: center;
    color: var(--text-faint);
    font-size: 12px;
    margin-top: 20px;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â• APP LAYOUT â•â•â•â•â•â•â•â•â•â•â•â•â• */
.app-container {
    display: flex;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

/* â”€â”€ Sidebar â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.sidebar {
    width: 260px;
    min-width: 260px;
    background: var(--bg-surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 20px 16px;
    transition: width 0.3s var(--ease), min-width 0.3s var(--ease);
    overflow: hidden;
}

.sidebar.collapsed {
    width: 64px;
    min-width: 64px;
}

.sidebar.collapsed .logo-text,
.sidebar.collapsed .nav-section-label,
.sidebar.collapsed .nav-item span,
.sidebar.collapsed .user-info,
.sidebar.collapsed .nav-badge {
    display: none;
}

.sidebar.collapsed .nav-item {
    justify-content: center;
    padding: 12px;
}

.sidebar.collapsed .logo-section {
    justify-content: center;
}

.sidebar.collapsed .sidebar-toggle i {
    transform: rotate(180deg);
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 6px 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
}

.logo-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    box-shadow: 0 4px 10px rgba(99, 102, 241, .3);
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 17px;
    font-weight: 700;
    white-space: nowrap;
    flex: 1;
}

.premium-badge {
    background: var(--warning);
    color: #111;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 4px;
    vertical-align: middle;
    margin-left: 3px;
}

.sidebar-toggle {
    background: none;
    color: var(--text-muted);
    padding: 4px;
    border-radius: 6px;
    transition: var(--transition);
    margin-left: auto;
}

.sidebar-toggle:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.nav-menu {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow-y: auto;
}

.nav-section-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-faint);
    padding: 12px 10px 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 13.5px;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
    position: relative;
}

.nav-item i {
    width: 16px;
    min-width: 16px;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
}

.nav-item.active {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary-light);
}

.nav-item.active i {
    color: var(--primary);
}

.nav-badge {
    margin-left: auto;
    background: var(--danger);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 10px;
    display: none;
}

.nav-badge.show {
    display: block;
}

.sidebar-footer {
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: var(--radius-md);
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    object-fit: cover;
}

.user-info {
    flex: 1;
    overflow: hidden;
}

.user-name {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    font-size: 11px;
    color: var(--text-muted);
}

/* â”€â”€ Content Wrapper â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--bg-base);
}

.top-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 32px;
    border-bottom: 1px solid var(--border);
    background: rgba(11, 15, 26, 0.8);
    backdrop-filter: blur(8px);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-title {
    font-size: 20px;
    font-weight: 700;
}

.breadcrumb {
    font-size: 12px;
    color: var(--text-faint);
    margin-top: 2px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-bar {
    position: relative;
    display: flex;
    align-items: center;
}

.search-bar i {
    position: absolute;
    left: 12px;
    color: var(--text-faint);
    width: 15px;
}

.search-bar input {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 9px 12px 9px 38px;
    color: var(--text-primary);
    font-size: 13px;
    width: 240px;
    transition: var(--transition);
}

.search-bar input:focus {
    border-color: var(--primary);
    width: 300px;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, .12);
}

.btn-icon {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    position: relative;
}

.btn-icon:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-icon-sm {
    background: none;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-icon-sm:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.notification-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--danger);
    border: 2px solid var(--bg-base);
}

.btn-primary {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border-radius: var(--radius-md);
    padding: 9px 18px;
    font-size: 13.5px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(99, 102, 241, .3);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(99, 102, 241, .4);
}

.btn-secondary {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-elevated);
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-danger {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-md);
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.2);
}

.btn-success {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--secondary);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-md);
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-success:hover {
    background: rgba(16, 185, 129, 0.2);
}

/* â”€â”€ Main Content â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.main-content {
    flex: 1;
    overflow-y: auto;
    padding: 28px 32px;
}

/* â”€â”€ Section Headers â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.section-header h2 {
    font-size: 22px;
    font-weight: 700;
}

.section-header p {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 2px;
}

.header-actions {
    display: flex;
    gap: 10px;
}

/* â”€â”€ Stats Cards â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
    cursor: default;
}

.stat-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-md);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon.indigo {
    background: rgba(99, 102, 241, .12);
    color: var(--primary);
}

.stat-icon.emerald {
    background: rgba(16, 185, 129, .12);
    color: var(--secondary);
}

.stat-icon.amber {
    background: rgba(245, 158, 11, .12);
    color: var(--warning);
}

.stat-icon.rose {
    background: rgba(239, 68, 68, .12);
    color: var(--danger);
}

.stat-icon.sky {
    background: rgba(56, 189, 248, .12);
    color: var(--info);
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-value {
    font-size: 26px;
    font-weight: 700;
    margin: 2px 0;
    font-family: 'Outfit', sans-serif;
}

.stat-trend {
    font-size: 11px;
    color: var(--text-faint);
}

.stat-trend.up {
    color: var(--secondary);
}

.stat-trend.down {
    color: var(--danger);
}

/* â”€â”€ Charts Grid â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.charts-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 28px;
}

.chart-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.chart-header h3 {
    font-size: 15px;
    font-weight: 700;
}

.chart-wrapper {
    position: relative;
    height: 220px;
}

/* â”€â”€ Cards Grid â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: var(--transition);
}

.card:hover {
    border-color: var(--border-md);
    box-shadow: var(--shadow-sm);
}

/* â”€â”€ Toolbar â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-input {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 9px 12px;
    color: var(--text-primary);
    font-size: 13px;
    width: 260px;
    transition: var(--transition);
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, .12);
}

.filter-select {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 9px 12px;
    color: var(--text-primary);
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-select:focus {
    border-color: var(--primary);
}

/* â”€â”€ Data Table â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.table-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.data-table thead th {
    padding: 14px 16px;
    text-align: left;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-faint);
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.data-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: var(--transition);
}

.data-table tbody tr:last-child {
    border-bottom: none;
}

.data-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.025);
}

.data-table td {
    padding: 13px 16px;
    color: var(--text-primary);
    vertical-align: middle;
}

.user-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--border);
}

.user-cell-info {
    display: flex;
    flex-direction: column;
}

.user-cell-name {
    font-weight: 600;
    font-size: 13.5px;
}

.user-cell-sub {
    font-size: 12px;
    color: var(--text-muted);
}

/* â”€â”€ Badges â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 600;
    white-space: nowrap;
}

.badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.badge-active {
    background: rgba(16, 185, 129, .12);
    color: var(--secondary);
}

.badge-active::before {
    background: var(--secondary);
}

.badge-inactive {
    background: rgba(239, 68, 68, .10);
    color: var(--danger);
}

.badge-inactive::before {
    background: var(--danger);
}

.badge-pending {
    background: rgba(245, 158, 11, .12);
    color: var(--warning);
}

.badge-pending::before {
    background: var(--warning);
}

.badge-approved {
    background: rgba(16, 185, 129, .12);
    color: var(--secondary);
}

.badge-approved::before {
    background: var(--secondary);
}

.badge-rejected {
    background: rgba(239, 68, 68, .10);
    color: var(--danger);
}

.badge-rejected::before {
    background: var(--danger);
}

.badge-open {
    background: rgba(99, 102, 241, .12);
    color: var(--primary-light);
}

.badge-open::before {
    background: var(--primary);
}

.badge-closed {
    background: rgba(148, 163, 184, .10);
    color: var(--text-muted);
}

.badge-closed::before {
    background: var(--text-muted);
}

.badge-available {
    background: rgba(16, 185, 129, .12);
    color: var(--secondary);
}

.badge-assigned {
    background: rgba(245, 158, 11, .12);
    color: var(--warning);
}

.badge-hired {
    background: rgba(56, 189, 248, .12);
    color: var(--info);
}

.badge-late {
    background: rgba(245, 158, 11, .12);
    color: var(--warning);
}

.badge-present {
    background: rgba(16, 185, 129, .12);
    color: var(--secondary);
}

.badge-absent {
    background: rgba(239, 68, 68, .10);
    color: var(--danger);
}

.badge-paid {
    background: rgba(16, 185, 129, .12);
    color: var(--secondary);
}

.badge-draft {
    background: rgba(148, 163, 184, .10);
    color: var(--text-muted);
}

.badge-warning {
    background: rgba(245, 158, 11, .12);
    color: var(--warning);
}

.badge-permanent {
    background: rgba(99, 102, 241, .12);
    color: var(--primary-light);
}

.badge-contract {
    background: rgba(56, 189, 248, .12);
    color: var(--info);
}

.badge-casual {
    background: rgba(148, 163, 184, .10);
    color: var(--text-muted);
}

/* â”€â”€ Forms â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-grid.single {
    grid-template-columns: 1fr;
}

.form-grid.three {
    grid-template-columns: 1fr 1fr 1fr;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-full {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 10px 13px;
    color: var(--text-primary);
    font-size: 13.5px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, .12);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group select option {
    background: var(--bg-elevated);
}

/* â”€â”€ Empty State â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 64px 32px;
    text-align: center;
    color: var(--text-muted);
}

.empty-state .empty-icon {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--text-faint);
}

.empty-state h3 {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 13px;
    max-width: 320px;
}

/* â”€â”€ Modal â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s var(--ease);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal {
    background: var(--bg-surface);
    border: 1px solid var(--border-md);
    border-radius: var(--radius-xl);
    padding: 0;
    width: 560px;
    max-width: 95vw;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s var(--ease);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 24px;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    font-size: 17px;
    font-weight: 700;
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid var(--border);
}

.modal-lg .modal {
    width: 760px;
}

.modal-xl .modal {
    width: 1040px;
    max-width: 98vw;
}


/* â”€â”€ Alert / Notifications â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-danger {
    background: rgba(239, 68, 68, .12);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, .3);
}

.alert-success {
    background: rgba(16, 185, 129, .12);
    color: var(--secondary);
    border: 1px solid rgba(16, 185, 129, .3);
}

.alert-warning {
    background: rgba(245, 158, 11, .12);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, .3);
}

.alert-info {
    background: rgba(56, 189, 248, .12);
    color: var(--info);
    border: 1px solid rgba(56, 189, 248, .3);
}

/* â”€â”€ Toasts â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: var(--bg-elevated);
    border: 1px solid var(--border-md);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13.5px;
    box-shadow: var(--shadow-md);
    animation: toastIn 0.3s var(--ease);
    min-width: 280px;
    max-width: 380px;
}

@keyframes toastIn {
    from {
        transform: translateX(100px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-success {
    border-left: 4px solid var(--secondary);
}

.toast-error {
    border-left: 4px solid var(--danger);
}

.toast-warning {
    border-left: 4px solid var(--warning);
}

.toast-info {
    border-left: 4px solid var(--info);
}

/* â”€â”€ Tab Switcher â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    background: var(--bg-elevated);
    padding: 4px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    width: fit-content;
}

.tab {
    padding: 7px 18px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
    border: none;
    background: none;
}

.tab.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(99, 102, 241, .3);
}

/* â”€â”€ Loading â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.spinner {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 3px solid rgba(99, 102, 241, .2);
    border-top-color: var(--primary);
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    gap: 12px;
    color: var(--text-muted);
    font-size: 13px;
}

/* â”€â”€ Dashboard Specifics â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
    margin-bottom: 28px;
}

.quick-action-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px 14px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.quick-action-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.quick-action-card .qa-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.quick-action-card p {
    font-size: 12.5px;
    font-weight: 600;
}

/* â”€â”€ Attendance Clock â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.clock-widget {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border-radius: var(--radius-xl);
    padding: 28px;
    text-align: center;
    color: #fff;
    margin-bottom: 24px;
    box-shadow: var(--shadow-glow);
}

.clock-time {
    font-family: 'Outfit', sans-serif;
    font-size: 48px;
    font-weight: 700;
}

.clock-date {
    font-size: 13px;
    opacity: 0.75;
    margin-top: 4px;
}

.clock-btn {
    margin-top: 20px;
    background: #fff;
    color: var(--primary-dark);
    font-weight: 700;
    border: none;
    border-radius: var(--radius-md);
    padding: 12px 28px;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
}

.clock-btn:hover {
    transform: scale(1.04);
}

/* â”€â”€ QR Code Preview â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.qr-preview {
    text-align: center;
    padding: 24px;
}

.qr-preview img {
    max-width: 200px;
    image-rendering: pixelated;
    border-radius: 8px;
}

/* â”€â”€ Payslip Card â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.payslip-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.payslip-line:last-child {
    border-bottom: none;
}

.payslip-line.total {
    font-weight: 700;
    font-size: 16px;
    color: var(--secondary);
}

/* â”€â”€ Org Chart â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.org-department {
    margin-bottom: 28px;
}

.org-dept-title {
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--primary-light);
}

.org-employees {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-left: 16px;
}

.org-employee-chip {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 8px 14px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* â”€â”€ Utilities â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.hidden {
    display: none !important;
}

.flex {
    display: flex;
}

.gap-2 {
    gap: 8px;
}

.gap-3 {
    gap: 12px;
}

.text-muted {
    color: var(--text-muted);
    font-size: 13px;
}

.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 8px;
}

.mt-3 {
    margin-top: 12px;
}

.mt-4 {
    margin-top: 16px;
}

.w-full {
    width: 100%;
}

.font-bold {
    font-weight: 700;
}

.divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 16px 0;
}

/* â”€â”€ Responsiveness â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width:1100px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width:780px) {
    .sidebar {
        width: 64px;
        min-width: 64px;
    }

    .sidebar .logo-text,
    .sidebar .nav-section-label,
    .sidebar .nav-item span,
    .sidebar .user-info {
        display: none;
    }

    .sidebar .nav-item {
        justify-content: center;
    }

    .top-header {
        padding: 12px 18px;
    }

    .main-content {
        padding: 18px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* â”€â”€ Commercial Features Extensions â”€â”€ */
.file-upload-wrapper {
    width: 100%;
}

.file-dropzone {
    border: 2px dashed var(--border-md);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.file-dropzone:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.file-dropzone i {
    width: 32px;
    height: 32px;
    color: var(--primary);
}

.header-notifications {
    position: relative;
}

.notif-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    width: 350px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    overflow: hidden;
    animation: slideDown 0.3s var(--ease);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notif-header {
    padding: 15px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
}

.notif-header h3 {
    font-size: 16px;
    margin: 0;
}

.notif-list {
    max-height: 400px;
    overflow-y: auto;
}

.notif-item {
    padding: 15px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
}

.notif-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.notif-item.unread {
    background: rgba(99, 102, 241, 0.05);
    border-left: 3px solid var(--primary);
}

.notif-item h4 {
    font-size: 14px;
    margin-bottom: 4px;
}

.notif-item p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
}

.notif-item small {
    font-size: 11px;
    color: var(--text-faint);
    margin-top: 8px;
    display: block;
}

.spinner-sm {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
    vertical-align: middle;
}

.btn-link {
    background: none;
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
}

.btn-link:hover {
    text-decoration: underline;
}

.hidden {
    display: none !important;
}


/* â• â• â• â• â• â•  MASTER-DETAIL LAYOUT SYSTEM â• â• â• â• â• â•  */
.details-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    height: calc(100vh - 120px);
    overflow: hidden;
    animation: fadeIn 0.4s ease;
}

.master-panel {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.master-panel .list-container {
    flex: 1;
    overflow-y: auto;
}

.detail-panel {
    overflow-y: auto;
    padding: 24px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.detail-panel .info-item label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 4px;
    font-weight: 700;
}

.detail-panel .info-item p {
    font-weight: 600;
    margin: 0;
    font-size: 14px;
    color: var(--text-primary);
}

.data-table tr.active {
    background: rgba(99, 102, 241, 0.15) !important;
    border-left: 3px solid var(--primary);
}

.data-table tr.active td {
    color: var(--primary-light);
}

@media (max-width: 1200px) {
    .details-layout {
        grid-template-columns: 1fr 1fr;
    }
}

/* ─── Mobile Responsiveness ──────────────────────── */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    padding: 0;
    margin-right: 12px;
    cursor: pointer;
}

@media screen and (max-width: 900px) {
    :root {
        --radius-sm: 2px;
        --radius-md: 4px;
        --radius-lg: 6px;
    }

    body { 
        font-size: 11px !important; 
        overflow-x: hidden !important;
        overflow-y: auto !important; /* Allow body scroll */
        height: auto !important;
    }

    h1 { font-size: 15px !important; }
    h2 { font-size: 13px !important; }
    h3 { font-size: 12px !important; }

    .app-container { 
        flex-direction: column !important; 
        max-width: 100% !important; 
        overflow-x: hidden !important; 
        height: auto !important; 
        min-height: 100vh !important; 
    }

    .mobile-menu-toggle { display: flex !important; align-items: center; justify-content: center; }

    .sidebar {
        position: fixed !important;
        top: 0;
        left: -300px;
        bottom: 0;
        width: 270px !important;
        min-width: 270px !important;
        z-index: 2000 !important;
        transition: left 0.3s var(--ease) !important;
        background: var(--bg-surface) !important;
        padding: 15px !important;
        box-shadow: 20px 0 50px rgba(0,0,0,0.5) !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .sidebar.mobile-active { left: 0 !important; }
    
    .sidebar .nav-item {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        padding: 12px 14px !important;
        width: 100% !important;
    }

    .sidebar .nav-item span {
        display: inline-block !important;
        opacity: 1 !important;
        visibility: visible !important;
        font-size: 13px !important;
        font-weight: 500 !important;
    }

    .sidebar .nav-section-label {
        display: block !important;
        padding: 15px 14px 5px !important;
        font-size: 10px !important;
    }

    .sidebar .logo-text { display: block !important; font-size: 16px !important; }
    .sidebar .user-info { display: block !important; }

    .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.7);
        backdrop-filter: blur(4px);
        z-index: 1000;
    }

    .sidebar-overlay.active { display: block !important; }

    .top-header {
        position: sticky !important;
        top: 0;
        z-index: 900 !important;
        padding: 8px 12px !important;
        min-height: 50px !important;
        display: flex !important;
        align-items: center !important;
        background: var(--bg-surface) !important;
        border-bottom: 1px solid var(--border) !important;
    }

    .content-wrapper { 
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    #main-content { padding: 10px !important; overflow: visible !important; }

    /* Fix Stats Grid - Always stack on small mobile */
    .stats-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        margin-bottom: 15px !important;
    }

    /* Fixed performance/training squeezed regions */
    .details-layout {
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
        gap: 15px !important;
        overflow: visible !important;
    }

    .master-panel, .detail-panel {
        width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .list-container {
        max-height: 400px !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    /* Force all grid style elements to stack */
    [style*="display:grid"], .dashboard-grid, .charts-grid, .quick-actions-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        overflow: visible !important;
    }

    /* Forms and Filters */
    .toolbar, .section-header {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }

    .header-actions {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .btn-primary, .btn-secondary {
        width: 100% !important;
        justify-content: center !important;
    }

    /* Hide heavy decorative items */
    .login-blob, .chart-card, .chart-wrapper, .breadcrumb, .stat-trend, .sidebar-toggle {
        display: none !important;
    }

    .data-table-wrapper {
        margin: 0 -10px !important;
        width: calc(100% + 20px) !important;
        overflow-x: auto !important;
    }
}