:root {
    --primary-color: #6e4ff6;
    --secondary-color: #f64f87;
    --tertiary-color: #4f9df6;
    --background-dark: #121A2E;
    --background-card: #1a2540;
    --text-light: #ffffff;
    --text-muted: #a0a9c0;
    --success-color: #0abb87;
    --warning-color: #ffb822;
    --danger-color: #fd397a;
    --info-color: #5578eb;
}

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin-bottom: 60px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--background-dark);
    color: var(--text-light);
}

/* Dark Mode Styles */
.dark-mode {
    background-color: var(--background-dark);
    color: var(--text-light);
}

    .dark-mode .navbar {
        background-color: var(--background-card) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .dark-mode .card {
        background-color: var(--background-card);
        border: none;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    }

    .dark-mode .table {
        color: var(--text-light);
    }

    .dark-mode .table-hover tbody tr:hover {
        background-color: rgba(255, 255, 255, 0.05);
    }

    .dark-mode .modal-content {
        background-color: var(--background-card);
        color: var(--text-light);
    }

    .dark-mode .form-control,
    .dark-mode .form-select {
        background-color: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.1);
        color: var(--text-light);
    }

        .dark-mode .form-control:focus,
        .dark-mode .form-select:focus {
            background-color: rgba(255, 255, 255, 0.1);
            border-color: var(--primary-color);
            color: var(--text-light);
        }

    .dark-mode .dropdown-menu {
        background-color: var(--background-card);
        border-color: rgba(255, 255, 255, 0.1);
    }

    .dark-mode .dropdown-item {
        color: var(--text-light);
    }

        .dark-mode .dropdown-item:hover {
            background-color: rgba(255, 255, 255, 0.05);
            color: var(--text-light);
        }

    .dark-mode .text-dark {
        color: var(--text-light) !important;
    }

    .dark-mode .text-muted {
        color: var(--text-muted) !important;
    }

    .dark-mode .border-bottom {
        border-bottom-color: rgba(255, 255, 255, 0.1) !important;
    }

/* Navigation */
.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 48px 0 0;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
    background-color: var(--background-card);
    width: 250px;
}

.sidebar-sticky {
    position: relative;
    top: 0;
    height: calc(100vh - 48px);
    padding-top: .5rem;
    overflow-x: hidden;
    overflow-y: auto;
}

.sidebar .nav-link {
    font-weight: 500;
    color: var(--text-muted);
    padding: .75rem 1rem;
    display: flex;
    align-items: center;
}

    .sidebar .nav-link:hover {
        color: var(--text-light);
        background-color: rgba(255, 255, 255, 0.05);
    }

    .sidebar .nav-link.active {
        color: var(--primary-color);
        background-color: rgba(110, 79, 246, 0.1);
        border-left: 3px solid var(--primary-color);
    }

    .sidebar .nav-link i {
        margin-right: 0.75rem;
        width: 20px;
        text-align: center;
    }

.main-content {
    margin-left: 250px;
    padding: 2rem;
}

/* Cards */
.card {
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    }

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    transition: all 0.3s ease;
}

.metric-card {
    border-radius: 0.5rem;
    padding: 1.5rem;
    height: 100%;
}

    .metric-card .icon {
        width: 48px;
        height: 48px;
        border-radius: 0.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 1rem;
    }

    .metric-card .value {
        font-size: 2rem;
        font-weight: 700;
        margin-bottom: 0.5rem;
    }

    .metric-card .label {
        font-size: 0.875rem;
        color: var(--text-muted);
    }

    .metric-card .trend {
        font-size: 0.875rem;
        display: flex;
        align-items: center;
    }

        .metric-card .trend.up {
            color: var(--success-color);
        }

        .metric-card .trend.down {
            color: var(--danger-color);
        }

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

    .btn-primary:hover {
        background-color: darken(var(--primary-color), 10%);
        border-color: darken(var(--primary-color), 10%);
    }

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

    .btn-secondary:hover {
        background-color: darken(var(--secondary-color), 10%);
        border-color: darken(var(--secondary-color), 10%);
    }

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

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

/* Tables */
.table th {
    border-top: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 600;
    color: var(--text-light);
    background: var(--background-card);
}

.table td {
    vertical-align: middle;
    border-color: rgba(255, 255, 255, 0.05);
}

/* Badges */
.badge {
    padding: 0.4em 0.6em;
    font-weight: 500;
    border-radius: 0.25rem;
}

/* Navbar */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    background: linear-gradient(45deg, #f64f87, #6e4ff6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

    .navbar-brand i {
        margin-right: 0.5rem;
    }

/* User avatar */
.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Footer */
.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 60px;
    background-color: var(--background-card);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Charts */
.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

/* Loader */
.loader {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Utilities */
.bg-gradient-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--tertiary-color));
}

.bg-gradient-secondary {
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
}

.text-gradient {
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-primary-light {
    background-color: rgba(110, 79, 246, 0.1);
}

.bg-secondary-light {
    background-color: rgba(246, 79, 135, 0.1);
}

.bg-success-light {
    background-color: rgba(10, 187, 135, 0.1);
}

.bg-warning-light {
    background-color: rgba(255, 184, 34, 0.1);
}

.bg-danger-light {
    background-color: rgba(253, 57, 122, 0.1);
}

.bg-info-light {
    background-color: rgba(85, 120, 235, 0.1);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background-dark);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 255, 255, 0.3);
    }

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 0;
    }

    .main-content {
        margin-left: 0;
        padding: 1rem;
    }

    .sidebar-sticky {
        height: auto;
    }

    .metric-card .value {
        font-size: 1.5rem;
    }
}


.table-hover > tbody > tr:hover {
    color: var(--text-light);
}

option {
    color: black;
}

#interviewQuestionsContainer {
    max-height: 400px;
    overflow-y: auto;
}

.transcription-content.flex-fill {
    max-height: 20vh;
    overflow-y: auto;
}
/* sidebar width */
#sidebar {
    width: 260px;
    transition: width 0.25s ease;
}

/* main content uses margin-left only when sidebar-open */
body.sidebar-open #mainContent {
    margin-left: 260px;
    transition: margin-left 0.25s ease;
}

body:not(.sidebar-open) #mainContent {
    margin-left: 0;
}

/* collapsed sidebar */
body:not(.sidebar-open) #sidebar {
    width: 0 !important;
}
