/* Assets Style - Premium Hireism Light Dashboard Theme */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --font-primary: 'Outfit', sans-serif;

    /* Light Mode Palette */
    --clr-bg: #f4f6fa;
    --clr-bg-surface: #ffffff;
    --clr-border: #eef1f6;
    --clr-border-focus: #818cf8;

    --clr-primary: #4f46e5;
    --clr-primary-light: #eef2ff;
    --clr-secondary: #3b82f6;

    --clr-text: #1f2937;
    --clr-text-muted: #6b7280;

    --clr-success: #10b981;
    --clr-success-bg: #ecfdf5;
    --clr-error: #ef4444;
    --clr-error-bg: #fef2f2;

    --transition-smooth: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-lg: 16px;
    --radius-md: 10px;
    --radius-sm: 6px;
    --box-shadow-soft: 0 10px 30px rgba(165, 175, 190, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(100, 116, 139, 0.2) transparent;
}

/* Custom Premium Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.2);
    border-radius: 8px;
    transition: background 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--clr-primary);
}

body {
    font-family: var(--font-primary);
    background-color: var(--clr-bg);
    color: var(--clr-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

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

/* Top Navbar Header */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2.5rem;
    height: 70px;
    background: var(--clr-bg-surface);
    border-bottom: 1px solid var(--clr-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-brand {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--clr-primary);
    text-decoration: none;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-brand-icon {
    width: 32px;
    height: 32px;
    background: var(--clr-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 0.95rem;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    list-style: none;
}

.nav-link {
    color: var(--clr-text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
    font-size: 0.92rem;
}

.nav-link:hover {
    color: var(--clr-primary);
}

.nav-btn {
    background: var(--clr-primary);
    color: #fff;
    padding: 0.55rem 1.1rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    font-size: 0.92rem;
}

.nav-btn:hover {
    background: #4338ca;
    transform: translateY(-1px);
}

.nav-btn-alt {
    background: #f3f4f6;
    color: var(--clr-text);
    padding: 0.55rem 1.1rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    font-size: 0.92rem;
}

.nav-btn-alt:hover {
    background: #e5e7eb;
}

/* Page Containers */
.container {
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.container-center {
    justify-content: center;
    align-items: center;
    min-height: 80vh;
}

/* Authentication Cards */
.auth-card {
    background: var(--clr-bg-surface);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    width: 100%;
    max-width: 450px;
    box-shadow: var(--box-shadow-soft);
    border: 1px solid var(--clr-border);
    animation: fadeIn 0.4s ease-out forwards;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--clr-text);
    letter-spacing: -0.5px;
}

.auth-subtitle {
    color: var(--clr-text-muted);
    font-size: 0.92rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--clr-text);
}

.form-control {
    background: var(--clr-bg-surface);
    border: 1px solid #d1d5db;
    border-radius: var(--radius-md);
    padding: 0.7rem 0.9rem;
    font-family: var(--font-primary);
    font-size: 0.92rem;
    color: var(--clr-text);
    transition: var(--transition-smooth);
    width: 100%;
}

.form-control:focus {
    outline: none;
    border-color: var(--clr-border-focus);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    color: var(--clr-text-muted);
    cursor: pointer;
}

.form-check input[type="checkbox"] {
    accent-color: var(--clr-primary);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.form-actions {
    margin-top: 1.5rem;
}

.btn-primary {
    display: block;
    width: 100%;
    background: var(--clr-primary);
    color: #fff;
    border: none;
    padding: 0.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-smooth);
    font-family: var(--font-primary);
}

.btn-primary:hover {
    background: #4338ca;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
}

.auth-footer {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.88rem;
    color: var(--clr-text-muted);
}

.auth-link {
    color: var(--clr-primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.auth-link:hover {
    text-decoration: underline;
    color: #4338ca;
}

/* Alert Notifications as Floating Toast Alerts */
.alert {
    padding: 0.9rem 1.2rem;
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid transparent;
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    min-width: 320px;
    max-width: 420px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 1;
    transform: translateX(0);
}

.alert-fadeout {
    opacity: 0 !important;
    transform: translateX(120%) !important;
    transition: opacity 0.3s, transform 0.3s;
}

@keyframes slideIn {
    from {
        transform: translateX(120%);
        opacity: 0;
    }

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

.alert-success {
    background: var(--clr-success-bg);
    color: var(--clr-success);
    border-color: rgba(16, 185, 129, 0.15);
}

.alert-error {
    background: var(--clr-error-bg);
    color: var(--clr-error);
    border-color: rgba(239, 68, 68, 0.15);
}

/* Dashboard Layout */
.dashboard-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    height: 100vh;
    overflow: hidden;
}

/* Sidebar Brand Styling */
.sidebar-brand {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--clr-bg-surface);
    padding: 1rem 1.75rem;
    border-bottom: 1px solid var(--clr-border);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* White Sidebar (Hireism Style) */
.sidebar {
    background: var(--clr-bg-surface);
    border-right: 1px solid var(--clr-border);
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.8rem 1.75rem;
    color: var(--clr-text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.92rem;
    border-right: 3px solid transparent;
    transition: var(--transition-smooth);
}

.sidebar-link svg {
    width: 20px;
    height: 20px;
    stroke: var(--clr-text-muted);
    fill: none;
    transition: var(--transition-smooth);
}

.sidebar-link:hover {
    color: var(--clr-primary);
    background: #f9fafb;
}

.sidebar-link:hover svg {
    stroke: var(--clr-primary);
}

.sidebar-link.active {
    color: var(--clr-primary);
    background: var(--clr-primary-light);
    border-right: 3px solid var(--clr-primary);
    font-weight: 600;
}

.sidebar-link.active svg {
    stroke: var(--clr-primary);
}

/* Content Panel */
.content-panel {
    padding: 2.2rem;
    background: var(--clr-bg);
    overflow-y: auto;
    position: relative;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.panel-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--clr-text);
    letter-spacing: -0.5px;
}

/* Hero Gradient Banner (Hireism style) */
.hero-banner {
    background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-secondary) 100%);
    border-radius: var(--radius-lg);
    padding: 2.2rem 2.5rem;
    color: #ffffff;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.15);
}

.hero-banner-title {
    font-size: 1.85rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.hero-banner-text {
    font-size: 0.95rem;
    opacity: 0.9;
    max-width: 500px;
    margin-bottom: 1.2rem;
}

/* Cards (Hireism Style) */
.card {
    background: var(--clr-bg-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--box-shadow-soft);
}

.card-header {
    margin-bottom: 1.25rem;
}

.card-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--clr-text);
}

/* Stats Cards Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--clr-bg-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--box-shadow-soft);
    transition: var(--transition-smooth);
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-label {
    color: var(--clr-text-muted);
    font-size: 0.85rem;
    font-weight: 550;
}

.stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--clr-text);
}

/* Custom Table Styles */
.table-container {
    background: var(--clr-bg-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--box-shadow-soft);
    margin-bottom: 2rem;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.data-table th {
    background: #f9fafb;
    color: var(--clr-text-muted);
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--clr-border);
}

.data-table td {
    padding: 1rem 1.5rem;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--clr-border);
    color: var(--clr-text);
    vertical-align: middle;
}

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

.data-table tr:hover td {
    background: #f9fafb;
}

/* Status Dot Badge */
.status-dot {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 500;
}

.status-dot::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot-active::before {
    background: var(--clr-success);
}

.status-dot-active {
    color: var(--clr-success);
}

.status-dot-inactive::before {
    background: var(--clr-error);
}

.status-dot-inactive {
    color: var(--clr-error);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: capitalize;
}

.badge-success {
    background: var(--clr-success-bg);
    color: var(--clr-success);
}

.badge-warning {
    background: #fffbeb;
    color: #d97706;
}

.badge-danger {
    background: var(--clr-error-bg);
    color: var(--clr-error);
}

/* Settings and content Grid */
.settings-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

/* Button UI */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.1rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-family: var(--font-primary);
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
    text-decoration: none;
    font-size: 0.88rem;
}

.btn-secondary {
    background: #f3f4f6;
    color: var(--clr-text);
}

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

.btn-sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
}

.btn-danger {
    background: var(--clr-error-bg);
    color: var(--clr-error);
}

.btn-danger:hover {
    background: var(--clr-error);
    color: #fff;
}

.btn-inline {
    width: auto;
}

/* Developer Debug Banner */
.debug-banner {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: var(--radius-md);
    padding: 1rem;
    color: #78350f;
    font-family: monospace;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.debug-title {
    font-weight: bold;
    margin-bottom: 0.4rem;
    color: #b45309;
}

/* Custom mock search input in header */
.header-search {
    display: flex;
    align-items: center;
    background: #f3f4f6;
    border-radius: 20px;
    padding: 0.4rem 1rem;
    width: 250px;
    border: 1px solid transparent;
}

.header-search input {
    background: transparent;
    border: none;
    outline: none;
    font-family: var(--font-primary);
    font-size: 0.85rem;
    width: 100%;
}

/* Utilities */
.text-center {
    text-align: center;
}

.mt-3 {
    margin-top: 1.25rem;
}

.mb-3 {
    margin-bottom: 1.25rem;
}

.d-flex {
    display: flex;
}

.gap-2 {
    gap: 0.8rem;
}

.align-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.w-full {
    width: 100%;
}

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

    .sidebar {
        border-right: none;
        border-bottom: 1px solid var(--clr-border);
    }

    .settings-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Dynamic Toggleable Drawer Form Settings Grid */
.settings-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.form-card-container {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    background: var(--clr-bg);
    padding: 2.2rem;
    overflow-y: auto;
}

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

.settings-grid.show-form .form-card-container {
    display: block;
}

.form-card-container .card {
    max-width: 800px;
    margin: 0 auto 2rem;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--box-shadow-soft);
    animation: slideUpCover 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}