:root {
    --primary: #2563EB;
    --primary-dark: #1D4ED8;
    --bg-page: #F8FAFC;
    --bg-secondary: #EEF2F6;
    --text-main: #1F2937;
    --text-secondary: #6B7280;
    --success: #16A34A;
    --glass-border: rgba(31, 41, 55, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-page);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

.selection-theme::selection {
    background-color: var(--primary);
    color: white;
}

.bg-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    width: 50vw;
    height: 50vw;
    animation: pulse 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.blob-top {
    top: -20%;
    left: -10%;
    background: rgba(191, 219, 254, 0.4);
}

.blob-bottom {
    bottom: -20%;
    right: -10%;
    background: rgba(224, 231, 255, 0.6);
    animation-delay: 2s;
}

.float-dot {
    position: absolute;
    border-radius: 50%;
}

.dot-1 {
    top: 25%;
    left: 25%;
    width: 8px;
    height: 8px;
    background: var(--primary);
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
}

.dot-2 {
    top: 75%;
    right: 33%;
    width: 12px;
    height: 12px;
    background: #93C5FD;
    opacity: 0.4;
    animation: float 6s ease-in-out 3s infinite;
}

.dot-3 {
    top: 50%;
    left: 75%;
    width: 6px;
    height: 6px;
    background: var(--primary);
    opacity: 0.2;
    animation: float 6s ease-in-out infinite;
}

.dot-4 {
    bottom: 25%;
    left: 40px;
    width: 8px;
    height: 8px;
    background: #A5B4FC;
    opacity: 0.3;
    animation: float 6s ease-in-out 3s infinite;
}

.noise-overlay {
    position: absolute;
    inset: 0;
    background-image: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.15;
    mix-blend-mode: overlay;
}

.grid-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(31, 41, 55, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: linear-gradient(to bottom, transparent, white, transparent);
}

.page-wrapper {
    position: relative;
    z-index: 10;
    display: flex;
    min-height: 100vh;
    width: 100%;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;
}

.login-card {
    /* width: 100%; */
    max-width: 1000px;
    background: white;
    border-radius: 1.5rem;
    border: 1px solid var(--glass-border);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    min-height: 600px;
    overflow: hidden;
}

@media (min-width: 768px) {
    .login-card {
        flex-direction: row;
    }
}


.brand-panel {
    position: relative;
    width: 100%;
    padding: 2.5rem;
    background-color: var(--bg-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #F3F4F6;
}

@media (min-width: 768px) {
    .brand-panel {
        width: 45%;
        border-bottom: none;
        border-right: 1px solid #F3F4F6;
    }
}

.brand-inner-bg {
    position: absolute;
    width: 16rem;
    height: 16rem;
    background: white;
    border-radius: 50%;
    filter: blur(50px);
    opacity: 0.7;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.visual-container {
    position: relative;
    z-index: 10;
    text-align: center;
    animation: float 6s ease-in-out infinite;
}

.icon-stack {
    position: relative;
    margin-bottom: 2rem;
    display: inline-block;
}

.security-icon {
    font-size: 120px !important;
    color: #BFDBFE;
}

.lock-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -40%);
}

.lock-icon {
    font-size: 36px !important;
    color: var(--primary);
    animation: pulse 2s infinite;
}

.spinning-ring {
    position: absolute;
    inset: -20px;
    border: 1px dashed rgba(37, 99, 235, 0.2);
    border-radius: 50%;
    width: 160px;
    height: 160px;
    animation: spin 12s linear infinite;
}

.brand-info h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.tagline {
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.system-status {
    position: absolute;
    bottom: 1.5rem;
    font-size: 0.75rem;
    font-family: monospace;
    color: var(--text-secondary);
}

.status-indicator {
    color: var(--success);
    font-weight: 600;
}


.form-panel {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: white;
}

@media (min-width: 768px) {
    .form-panel {
        padding: 3rem;
    }
}

.form-container {
    width: 100%;
    /*max-width: 400px;*/
    margin: 0 auto;
}

.header h1 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    padding-left: 20px;
}

.header p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 2rem;
}

.input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.input-prefix {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    padding-left: 0.75rem;
    display: flex;
    align-items: center;
    pointer-events: none;
    color: #9CA3AF;
    transition: color 0.2s;
}

.input-group:focus-within .input-prefix {
    color: var(--primary);
}

.floating-input {
    width: 100%;
    padding: 1.25rem 0.75rem 0.5rem 2.5rem;
    background: var(--bg-secondary);
    border: 1px solid #E5E7EB;
    border-radius: 0.5rem;
    font-size: 1rem;
    color: var(--text-main);
    transition: all 0.2s;
}

.floating-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    background: white;
}

.floating-label {
    position: absolute;
    left: 2.5rem;
    top: 0.875rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    transition: all 0.2s ease-out;
    pointer-events: none;
}


.floating-input:focus~.floating-label,
.floating-input:not(:placeholder-shown)~.floating-label {
    /* transform: translateY(-1.75rem) scale(0.85); */
    transform: translateY(-2.2rem) scale(0.75);
    color: var(--primary);
}

.visibility-toggle {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    padding-right: 0.75rem;
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #9CA3AF;
}


.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-wrapper {
    position: relative;
    width: 1rem;
    height: 1rem;
}

.checkbox-wrapper input {
    opacity: 0;
    width: 0;
    height: 0;
}

.checkmark {
    position: absolute;
    inset: 0;
    background: white;
    border: 1px solid #D1D5DB;
    border-radius: 0.25rem;
    transition: all 0.2s;
}

.checkbox-wrapper input:checked~.checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.checkmark svg {
    color: white;
    display: none;
    padding: 1px;
}

.checkbox-wrapper input:checked~.checkmark svg {
    display: block;
}

.forgot-link {
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
}

.forgot-link:hover {
    text-decoration: underline;
}

.submit-btn {
    width: 100%;
    background: var(--primary);
    color: white;
    padding: 0.875rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
    transition: all 0.2s;
}

.submit-btn:hover {
    background: var(--primary-dark);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.submit-btn:active {
    transform: scale(0.98);
}

.btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.security-footer {
    margin-top: 2.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #F3F4F6;
}

.badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.badge .material-symbols-outlined {
    color: var(--primary);
    font-size: 16px !important;
}


@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.95);
    }
}

input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px var(--bg-secondary) inset !important;
    -webkit-text-fill-color: var(--text-main) !important;
}


/* DASHBOARD PAGE */

:root {
    --primary: #2563EB;
    --primary-dark: #1D4ED8;
    --primary-bg: #F8FAFC;
    --secondary-bg: #EEF2F6;
    --surface: #FFFFFF;
    --border: #E5E7EB;
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --success: #16A34A;
    --warning: #F59E0B;
    --error: #DC2626;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-primary);
    /* overflow: hidden; */
}


.dashboard-container {
    display: flex;
    height: 100vh;
}

.sidebar {
    width: 260px;
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    z-index: 100;
}


.nav-item-container {
    display: flex;
    flex-direction: column;
}

.has-dropdown {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-link-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.arrow {
    transition: transform 0.3s ease;
    font-size: 18px !important;
}

.nav-item.open .arrow {
    transform: rotate(180deg);
}

.sub-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.3s ease;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 8px;
    /* margin: 0 8px; */
    /* opacity: 0; */
}

.nav-item.open+.sub-menu {
    max-height: 200px;
    opacity: 1;
    margin-bottom: 8px;
    /* padding: 4px 0; */
}

.sub-item {
    display: block;
    padding: 10px 10px 10px 48px;
    font-size: 0.85rem;
    color: #64748b;
    text-decoration: none;
    transition: all 0.2s;
    border-radius: 6px;
}

.sub-item:hover {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.05);
}

.sidebar-header {
    height: 64px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 24px;
    border-bottom: 1px solid var(--border);
    /* padding-bottom: 10px; */
}

.logo-box {
    background: rgba(37, 99, 235, 0.1);
    padding: 8px;
    border-radius: 8px;
    color: var(--primary);
}

.brand {
    font-weight: 700;
    font-size: 1.1rem;
    display: block;
}

.sub-brand {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.nav-menu {
    flex: 1;
    padding: 24px 16px;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
    margin-bottom: 4px;
    transition: 0.2s;
}

.nav-item:hover,
.nav-item.active {
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary);
}

.nav-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 24px 0 8px 12px;
    color: var(--text-secondary);
    font-weight: 700;
}

.badge {
    margin-left: auto;
    /* background: var(--primary); */
    /* color: white; */
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    text-decoration: none;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border);
}

.profile-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 8px;
}

.profile-btn:hover {
    background: var(--secondary-bg);
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-size: cover;
}

.profile-info {
    text-align: left;
    flex: 1;
}

.profile-info .name {
    font-size: 0.85rem;
    font-weight: 600;
}

.profile-info .email {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.top-header {
    height: 64px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 50;
}

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

.search-container {
    background: var(--secondary-bg);
    display: flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 8px;
    width: 100%;
    max-width: 400px;
    gap: 8px;
}

.search-container input {
    background: none;
    border: none;
    outline: none;
    width: 100%;
    font-size: 0.9rem;

}

.search-container kbd {
    font-size: 0.7rem;
    background: white;
    border: 1px solid var(--border);
    padding: 2px 4px;
    border-radius: 4px;
}

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

.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    cursor: pointer;
}

.icon-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 8px;
    border-radius: 8px;
    position: relative;
    cursor: pointer;
}

.icon-btn:hover {
    background: var(--secondary-bg);
    color: var(--primary);
}

.dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: var(--error);
    border-radius: 50%;
    border: 2px solid white;
}


.content-area {
    padding: 40px;
    overflow-y: auto;
    flex: 1;
}

.welcome-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 32px;
}

.welcome-section h1 {
    font-size: 1.8rem;
    font-weight: 800;
}

.welcome-section p {
    color: var(--text-secondary);
    margin-top: 4px;
}

.update-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: white;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid var(--border);
}


.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.stats-grid .stat-card:hover {
    border-color: var(--primary);
    transition: all 0.3s ease;
    box-shadow: none;
}

.stat-card {
    background: var(--surface);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.stat-card .card-header,
.stat-card .chart-sim,
.stat-card .value,
.stat-card .circle-chart {
    pointer-events: none;
}


.stat-card>* {
    pointer-events: none;
}


.stat-card {
    pointer-events: auto;
}


.bg-icon {
    position: absolute;
    right: -10px;
    top: -10px;
    font-size: 4rem;
    opacity: 0.05;
    color: var(--primary);
}

.bg-icon.error {
    color: var(--error);
}

.label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.value-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 8px;
}

.value {
    font-size: 1.8rem;
    font-weight: 700;
}

.trend-up {
    font-size: 0.7rem;
    color: var(--success);
    background: rgba(22, 163, 74, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

.trend-error {
    font-size: 0.7rem;
    color: var(--error);
    background: rgba(220, 38, 38, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

.sub-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 16px;
}


.progress-bar {
    height: 6px;
    background: var(--secondary-bg);
    border-radius: 10px;
    margin-top: 12px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(to right, var(--primary), var(--success));
}


.chart-sim {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 12px;
}

.circle-chart {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 6px solid var(--secondary-bg);
    border-top-color: var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}


.bottom-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.chart-container,
.activity-container {
    background: var(--surface);
    border-radius: 16px;
    border: 1px solid var(--border);
    padding: 24px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.card-header h3 {
    font-size: 1.1rem;
}

.bar-chart {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 200px;
    padding-top: 20px;
}

.bar-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 15%;
}

.bar {
    width: 100%;
    background: var(--primary);
    border-radius: 6px 6px 0 0;
    transition: 0.3s;
}

.bar:hover {
    filter: brightness(1.2);
}

.bar-group span {
    font-size: 0.7rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.activity-list {
    list-style: none;
}

.activity-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.green {
    background: var(--success);
}

.blue {
    background: var(--primary);
}

.orange {
    background: var(--warning);
}

.red {
    background: var(--error);
}


.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-brand {
    display: none;
    font-weight: 800;
}

@media (max-width: 1024px) {
    .sidebar {
        position: fixed;
        transform: translateX(-100%);
        height: 100%;
    }

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

    .menu-toggle {
        display: block;
    }

    .mobile-brand {
        display: block;
    }

    .bottom-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {

    .search-container,
    .welcome-section .update-tag {
        display: none;
    }

    .content-area {
        padding: 20px;
    }
}

/* DEPARTMENT & QUESTION MANAGER */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --text-dark: #1f2937;
    --text-muted: #6b7280;
    --border-color: #e2e8f0;
    --error: #dc2626;
    --success: #16a34a;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    background: var(--bg-white);
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    z-index: 10;
}

.logo-box {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    padding: 5px;
    border-radius: 8px;
    display: flex;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-text {
    font-weight: 800;
    font-size: 1.1rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.status-pill {
    background: #eef2f6;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 5px var(--success);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.u-name {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
}

.u-role {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.u-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #ccc url('https://ui-avatars.com/api/?name=Alex+Morgan&background=2563EB&color=fff') center/cover;
}

.layout {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.sidebar {
    width: 280px;
    background: var(--bg-white);
    border-right: 1px solid var(--border-color);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.sidebar-section {
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
    letter-spacing: 1px;
}

.search-wrapper {
    position: relative;
    margin-top: 1rem;
}

.search-icon {
    position: absolute;
    left: 10px;
    top: 8px;
    color: #94a3b8;
    font-size: 1.2rem;
}

.search-input {
    width: 100%;
    background: #f1f5f9;
    border: 1px solid var(--border-color);
    padding: 8px 10px 8px 35px;
    border-radius: 8px;
    font-size: 0.85rem;
}

.nav-menu {
    flex: 1;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    text-decoration: none;
    color: var(--text-muted);
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 5px;
    transition: 0.2s;
}

.nav-link:hover {
    background: #f1f5f9;
    color: var(--text-dark);
}

.nav-link.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.nav-badge {
    margin-left: auto;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2);
    font-weight: 700;
}

.nav-badge.muted {
    background: #f1f5f9;
    color: var(--text-muted);
}

.ai-promo-card {
    background: #1e293b;
    color: white;
    padding: 1.25rem;
    border-radius: 12px;
    margin-top: auto;
}

.ai-promo-card h3 {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.ai-promo-card p {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-bottom: 15px;
}

.promo-btn {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.8rem;
    transition: 0.2s;
}

.promo-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.main-content {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}

.breadcrumb {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.header-action-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.title-group h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.title-group p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: 0.2s;
    font-size: 0.85rem;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: scale(1.02);
}

.table-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

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

.data-table th {
    background: #f8fafc;
    padding: 12px 20px;
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    letter-spacing: 0.5px;
}

.data-table td {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.q-text {
    font-weight: 600;
    margin-bottom: 4px;
}

.q-subtext {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
}

.badge-red {
    background: #fee2e2;
    color: #991b1b;
}

.timer-box {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.timer-box .material-symbols-outlined {
    font-size: 1rem;
}

.action-btn {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    transition: 0.2s;
}

.action-btn:hover {
    color: var(--primary);
}

.action-btn.delete:hover {
    color: var(--error);
}

.text-right {
    text-align: right;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--bg-white);
    width: 90%;
    max-width: 500px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease-out;
}

.modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}

.modal-body {
    padding: 1.5rem;
}

.form-control {
    margin-bottom: 1.25rem;
}

.form-control label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.form-control input[type="text"],
.form-control select,
.form-control textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.label-flex {
    display: flex;
    justify-content: space-between;
}

.time-val {
    color: var(--primary);
    font-weight: 800;
    font-size: 0.8rem;
}

.diff-picker {
    display: flex;
    gap: 5px;
}

.diff-option {
    flex: 1;
    position: relative;
    cursor: pointer;
}

.diff-option input {
    display: none;
}

.diff-option span {
    display: block;
    text-align: center;
    padding: 8px;
    background: #f1f5f9;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: 0.2s;
}

.diff-option input:checked+span {
    background: #dbeafe;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1rem;
}

.btn-secondary {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-weight: 600;
    padding: 10px;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* @media (max-width: 900px) {
    .sidebar {
        display: none;
    }
} */

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .header-right .status-pill {
        display: none;
    }

    .main-content {
        padding: 1rem;
    }
}

/* CANDIDATE ONBOARDING  */

:root {
    --primary: #2563EB;
    --primary-hover: #1d4ed8;
    --bg: #F8FAFC;
    --surface: #FFFFFF;
    --surface-highlight: #EEF2F6;
    --border: #E2E8F0;
    --text-main: #1F2937;
    --text-sec: #6B7280;
    --success: #16A34A;
    --error: #DC2626;
    --warning: #F59E0B;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text-main);
    line-height: 1.5;
}

.navbar {
    height: 70px;
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 40px;
    /* flex-wrap: wrap;  */
}

.navbar-left,
.navbar-right {
    display: flex;
    align-items: center;
    /*gap: 32px;*/
    gap: 16px;
    flex-shrink: 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    color: var(--text-main);
}

.brand-logo {
    color: var(--primary);
    font-size: 32px;
}

.brand-name {
    font-size: 1.125rem;
    font-weight: 700;
}

.search-container {
    position: relative;
    /*width: 250px;*/
    max-width: 250px;
    width: 100%;
    background: var(--surface-highlight);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.search-icon {
    position: absolute;
    left: 10px;
    top: 8px;
    color: var(--text-sec);
    font-size: 20px;
}

.search-container input {
    width: 100%;
    border: none;
    background: transparent;
    padding: 10px 10px 10px 40px;
    font-size: 14px;
    outline: none;
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-sec);
    font-size: 14px;
    font-weight: 500;
}

.nav-links a.active,
.nav-links a:hover {
    color: var(--text-main);
}

.user-profile {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: url('https://ui-avatars.com/api/?name=Admin&background=2563EB&color=fff') center/cover;
    border: 2px solid var(--surface-highlight);
}


.btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

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

.btn-outline {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-main);
}

.btn-outline:hover {
    background: var(--surface-highlight);
}

.btn-text {
    color: var(--primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
}

.btn-text:hover {
    background-color: rgba(37, 99, 235, 0.1);
    border-radius: 4px;
}

.container {
    max-width: 1024px;
    margin: 32px auto;
    padding: 0 20px;
}

.page-header {
    margin-bottom: 32px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-size: 14px;
    margin-bottom: 8px;
}

.breadcrumb span {
    font-size: 12px;
    color: var(--text-sec);
}

.breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 20px;
}

.title-section h1 {
    font-size: 2.25rem;
    font-weight: 900;
    letter-spacing: -0.033em;
}

.title-section p {
    color: var(--text-sec);
    max-width: 600px;
    margin-top: 8px;
}


.upload-section {
    border: 2px dashed var(--border);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    background: var(--surface);
    transition: 0.3s;
    cursor: pointer;
    margin-bottom: 32px;
}

.upload-section:hover {
    border-color: var(--primary);
    background: var(--surface-highlight);
}

.upload-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--surface-highlight);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--primary);
    border: 1px solid var(--border);
}

.upload-icon-wrapper span {
    font-size: 32px;
}

.main-text {
    font-size: 18px;
    font-weight: 700;
}

.browse-link {
    color: var(--primary);
    text-decoration: underline;
}

.file-hint {
    font-size: 12px;
    color: var(--text-sec);
    display: block;
    margin-top: 8px;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.badge-count {
    font-size: 12px;
    background: var(--surface-highlight);
    padding: 2px 8px;
    border-radius: 99px;
    color: var(--text-sec);
    border: 1px solid var(--border);
}

.issue-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(220, 38, 38, 0.1);
    color: var(--error);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 14px;
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.table-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.table-responsive {
    overflow-x: auto;
}

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

.data-table th {
    padding: 16px 24px;
    background: var(--surface-highlight);
    color: var(--text-sec);
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
    border-bottom: 1px solid var(--border);
}

.data-table td {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
}

.row-error {
    background: rgba(220, 38, 38, 0.05);
}

.status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 12px;
}

.status-valid {
    color: var(--success);
}

.status-invalid {
    color: var(--error);
}

.dept-tag {
    background: var(--surface-highlight);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    border: 1px solid var(--border);
}

.row-actions {
    opacity: 0;
    transition: 0.2s;
}

tr:hover .row-actions {
    opacity: 1;
}

.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-sec);
    padding: 4px;
}

.btn-icon:hover {
    color: var(--text-main);
}

.btn-icon.delete:hover {
    color: var(--error);
}

.btn-fix {
    background: var(--error);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    font-size: 12px;
}

.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--border);
    padding: 16px 40px;
    z-index: 40;
}

.bottom-content {
    max-width: 1024px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.summary {
    display: flex;
    align-items: center;
    gap: 24px;
}

.summary-title {
    font-weight: 700;
    color: var(--text-main);
}

.summary-desc {
    font-size: 14px;
    color: var(--text-sec);
}

.summary-divider {
    width: 1px;
    height: 32px;
    background: var(--border);
}

.summary-error {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--error);
    font-size: 14px;
    font-weight: 500;
}

.summary-btns {
    display: flex;
    gap: 16px;
}


.notification {
    position: fixed;
    bottom: 100px;
    right: 24px;
    width: 320px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 50;
    animation: slideIn 0.5s ease;
}

.note-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.note-info {
    display: flex;
    gap: 12px;
}

.note-icon-box {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.note-text h4 {
    font-size: 14px;
}

.note-text p {
    font-size: 12px;
    color: var(--text-sec);
}

.close-note {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-sec);
}

.prog-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 4px;
}

.prog-track {
    height: 6px;
    background: var(--surface-highlight);
    border-radius: 10px;
    overflow: hidden;
}

.prog-fill {
    height: 100%;
    background: var(--primary);
    position: relative;
}

.prog-fill::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite linear;
}

@keyframes shimmer {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(100%);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(50px);
        opacity: 0;
    }

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


.text-right {
    text-align: right;
}

.font-bold {
    font-weight: 700;
}

.text-secondary {
    color: var(--text-sec);
}

@media (max-width: 850px) {
    .navbar {
        /* flex-direction: column;*/
        gap: 16px;
        padding: 12px;
    }

    /* .nav-links, .navbar-right .btn-job { 
        display: none; 
     }  */
    .nav-links {
        display: none;
    }

    .navbar-right {
        gap: 12px;
    }

    .brand-name {
        font-size: 1rem;
    }

    /* .bottom-bar { position: relative; padding: 16px; }
    .bottom-content { flex-direction: column; align-items: flex-start; } */
}

/* LINK MANAGMENT  */

:root {
    --primary: #2563EB;
    --primary-light: rgba(37, 99, 235, 0.1);
    --bg: #F8FAFC;
    --surface: #FFFFFF;
    --text-main: #1F2937;
    --text-muted: #6B7280;
    --border: #E5E7EB;
    --success: #16A34A;
    --error: #DC2626;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text-main);
    /*overflow: hidden;*/
}

.app-shell {
    display: flex;
    height: 100vh;
    width: 100%;
}

.sidebar {
    width: 256px;
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px;
    transition: width 0.3s;
    padding-top: 0px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    /*padding: 8px;  margin-bottom: 24px;*/
}

.brand-logo {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.brand-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 25px;
}

.nav-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: 0.2s;
}

.nav-item:hover {
    background: #F1F5F9;
    color: var(--primary);
}

.nav-item.active {
    background: var(--primary-light);
    color: var(--primary);
}

.icon-fill {
    font-variation-settings: 'FILL' 1;
}

.sidebar-bottom {
    border-top: 1px solid var(--border);
    padding-top: 16px;
}

.user-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 8px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.u-name {
    font-size: 14px;
    font-weight: 600;
}

.u-role {
    font-size: 11px;
    color: var(--text-muted);
}

.main-content {
    flex: 1;
    position: relative;
    overflow-y: auto;
    padding: 32px;
}

.bg-gradient-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 300px;
    background: linear-gradient(to bottom, rgba(37, 99, 235, 0.05), transparent);
    pointer-events: none;
}

.content-header {
    position: relative;
    margin-bottom: 32px;
}

.breadcrumbs {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.breadcrumbs a {
    text-decoration: none;
    color: inherit;
}

.breadcrumbs .active {
    color: var(--primary);
    font-weight: 600;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.header-flex h2 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.header-flex p {
    color: var(--text-muted);
    margin-top: 4px;
}

.btn-secondary {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.toolbar {
    background: var(--surface);
    padding: 8px;
    border-radius: 12px;
    border: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.search-field {
    position: relative;
    width: 400px;
}

.search-field span {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 20px;
}

.search-field input {
    width: 100%;
    background: var(--bg);
    border: none;
    padding: 10px 10px 10px 40px;
    border-radius: 8px;
    outline: none;
}

.filter-pills {
    display: flex;
    gap: 8px;
}

.pill {
    padding: 6px 12px;
    border-radius: 8px;
    border: none;
    background: #F1F5F9;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pill.active {
    background: var(--text-main);
    color: var(--surface);
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dot-primary {
    background: var(--primary);
}

.dot-success {
    background: var(--success);
}

.dot-error {
    background: var(--error);
}


.table-container {
    background: var(--surface);
    border-radius: 16px;
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
}

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

.data-table th {
    background: #F9FAFB;
    padding: 16px 24px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}

.data-table td {
    padding: 16px 24px;
    border-bottom: 1px solid #F3F4F6;
}

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

.candidate-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 12px;
}

.avatar-circle.blue {
    background: linear-gradient(to top right, #3B82F6, var(--primary));
}

.avatar-circle.green {
    background: linear-gradient(to top right, #10B981, #0D9488);
}

.candidate-meta .name {
    font-weight: 600;
    font-size: 14px;
}

.candidate-meta .email {
    font-size: 12px;
    color: var(--text-muted);
}

.status-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
}

.tag-sent {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.tag-opened {
    background: rgba(22, 163, 74, 0.1);
    color: var(--success);
    border: 1px solid rgba(22, 163, 74, 0.1);
}

.pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    animation: blink 2s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: #FAFAFA;
    font-size: 13px;
    color: var(--text-muted);
}

.pag-btn {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
}

.pag-btn.active {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary-light);
}


.config-sidebar {
    width: 320px;
    background: var(--surface);
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.config-header {
    padding: 24px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(to right, transparent, rgba(37, 99, 235, 0.02));
}

.config-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.icon-bg {
    background: var(--primary-light);
    color: var(--primary);
    padding: 8px;
    border-radius: 8px;
    display: flex;
}

.config-header p {
    font-size: 12px;
    color: var(--text-muted);
}

.config-content {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.security-card {
    background: var(--bg);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid rgba(22, 163, 74, 0.1);
}

.card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.card-label {
    font-size: 10px;
    font-weight: 800;
    color: var(--success);
}

.score-display {
    font-size: 24px;
    font-weight: 700;
}

.score-display span {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-muted);
}

.score-bar {
    height: 6px;
    background: #E2E8F0;
    border-radius: 10px;
    overflow: hidden;
}

.score-fill {
    height: 100%;
    background: var(--success);
    box-shadow: 0 0 10px rgba(22, 163, 74, 0.3);
}

.input-wrapper {
    position: relative;
    margin-top: 8px;
}

.input-wrapper span {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 18px;
}

.input-wrapper input {
    width: 100%;
    padding: 10px 10px 10px 40px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
    font-size: 13px;
}

.counter-input {
    display: flex;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-top: 8px;
    background: var(--bg);
}

.counter-input button {
    border: none;
    background: transparent;
    padding: 8px 12px;
    cursor: pointer;
    color: var(--text-muted);
}

.counter-input input {
    width: 100%;
    border: none;
    background: transparent;
    text-align: center;
    font-weight: 600;
}

.toggle-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.t-title {
    font-size: 14px;
    font-weight: 600;
}

.t-sub {
    font-size: 11px;
    color: var(--text-muted);
}

.switch {
    width: 44px;
    height: 22px;
    background: #CBD5E1;
    border-radius: 20px;
    position: relative;
    cursor: pointer;
    transition: 0.3s;
}

.switch.active {
    background: var(--primary);
}

.switch-knob {
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 3px;
    transition: 0.3s;
}

.switch.active .switch-knob {
    left: 25px;
}

.config-footer {
    padding: 24px;
    border-top: 1px solid var(--border);
}

.btn-primary {
    /* width: 100%;*/
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
    transition: 0.2s;
}

.btn-primary:hover {
    transform: translateY(-1px);
}

.footer-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 12px;
}

.btn-outline,
.btn-danger {
    padding: 10px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-danger {
    color: var(--error);
    border-color: rgba(220, 38, 38, 0.2);
    background: rgba(220, 38, 38, 0.02);
}


/* @media (max-width: 1100px) {
    .sidebar {
        width: 80px;
    } */

    /* .nav-label, .brand-name, .user-details { display: none; }  */
    .config-sidebar {
        display: none;
    }
/* } */

/* Candidate history */


.table-wrapper {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid #e2e8f0;
    overflow-x: auto;
}

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

.history-table th {
    background: #f8fafc;
    padding: 14px 20px;
    font-size: 0.85rem;
    color: #64748b;
    text-transform: uppercase;
}

.history-table td {
    padding: 16px 20px;
    border-top: 1px solid #f1f5f9;
    font-size: 0.9rem;
}

.status {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status.hired {
    background: #dcfce7;
    color: #166534;
}

.status.pending {
    background: #fef3c7;
    color: #92400e;
}

.status.rejected {
    background: #fee2e2;
    color: #991b1b;
}

.view-btn {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
}

@media (max-width: 768px) {

    .nav-links {
        display: none;
    }

    .navbar-left {
        width: 100%;
        justify-content: space-between;
        margin-bottom: 10px;
    }

    .brand-name {
        font-size: 1.2rem;
    }
}

/* HR/Admin Form Styles */

.form-card-container {
    background: white;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.hr-admin-form {
    padding: 32px;
}

.form-section {
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.section-header .material-symbols-outlined {
    color: var(--primary);
    font-size: 24px;
}

.section-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0 0 0 auto;
}

.optional-badge {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    padding: 4px 8px;
    border-radius: 4px;
    margin-left: 8px;
}

/* Role Selection */
.role-selection {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}

.role-option {
    flex: 1;
    cursor: pointer;
}

.role-option input[type="radio"] {
    display: none;
}

.role-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px;
    border: 2px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    transition: all 0.2s;
    text-align: center;
}

.role-card .material-symbols-outlined {
    font-size: 40px;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.role-card span:last-child {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
}

.role-option input[type="radio"]:checked+.role-card {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.05);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.role-option input[type="radio"]:checked+.role-card .material-symbols-outlined {
    color: var(--primary);
}

.role-option:hover .role-card {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.02);
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 16px;
}

.form-item {
    display: flex;
    flex-direction: column;
}

.form-item label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.required {
    color: var(--error);
    font-weight: 700;
}

.form-item .input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.form-item .input-wrapper .material-symbols-outlined:first-child {
    position: absolute;
    left: 12px;
    color: var(--text-secondary);
    font-size: 20px;
    pointer-events: none;
    z-index: 1;
}

.form-item .input-wrapper input,
.form-item .input-wrapper select {
    width: 100%;
    padding: 12px 12px 12px 44px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--text-main);
    transition: all 0.2s;
}

.form-item .input-wrapper.password-wrapper input {
    padding: 12px 40px 12px 12px;
}

.form-item .input-wrapper input:focus,
.form-item .input-wrapper select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.form-item .input-wrapper .visibility-toggle {
    position: absolute;
    right: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 20px;
    z-index: 1;
    transition: color 0.2s;
}

.form-item .input-wrapper .visibility-toggle:hover {
    color: var(--primary);
}

.form-hint {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 6px;
    line-height: 1.4;
}

/* Permissions Grid */
.permissions-grid {
    display: grid;
    gap: 16px;
    margin-top: 16px;
}

.permission-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.permission-item:hover {
    background: var(--surface-highlight);
    border-color: var(--primary);
}

.permission-item .toggle-text {
    flex: 1;
}

.permission-item .t-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 4px;
}

.permission-item .t-sub {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Status Control */
.status-control {
    margin-top: 16px;
}

.status-control .toggle-item {
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border);
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.btn-outline {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-outline:hover {
    background: var(--surface-highlight);
    border-color: var(--primary);
    color: var(--primary);
}

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

.btn-warning:hover {
    background: rgba(245, 158, 11, 0.1);
    border-color: var(--warning);
}

.btn-danger {
    border-color: var(--error);
    color: var(--error);
}

.btn-danger:hover {
    background: rgba(220, 38, 38, 0.1);
    border-color: var(--error);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hr-admin-form {
        padding: 20px;
    }

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

    .role-selection {
        flex-direction: column;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions button {
        width: 100%;
        justify-content: center;
    }

    .section-header {
        flex-wrap: wrap;
    }

    .section-subtitle {
        margin: 0;
        width: 100%;
    }
}

/* Users List Table Styles */
.users-list-container {
    margin-bottom: 32px;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.table-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

.table-header .btn-primary {
    padding: 10px 20px;
}

.data-table .btn-icon {
    margin-left: 8px;
}

.data-table .badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo-img {
    height: 52px;
    width: auto;
    object-fit: contain;
}

.header-login {
    background: var(--bg-white);
    /* padding: 0.75rem 1.5rem;    */
    /* padding: 3rem 1.5rem; */
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    z-index: 10;
}


.header-login h1 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    padding-left: 30px;
}

.header-login p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 2rem;
    padding-left: 15px;
    /*white-space: nowrap; overflow: hidden; text-overflow: ellipsis;*/
}

/* Modern Card Redesign for Interview Status */
.interview-status-card {
    background: #ffffff;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.interview-status-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Ensure canvas is crisp */
canvas {
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* =========================================
   Modern SaaS Dashboard Card Styles
   ========================================= */

.stat-card {
    background: white !important;
    border-radius: 16px !important;
    padding: 24px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    pointer-events: auto !important;
    /* Reset legacy */
}

.stat-card>* {
    pointer-events: auto !important;
    /* Reset legacy */
}

.stat-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 12px 24px -8px rgba(37, 99, 235, 0.15) !important;
    border-color: #bfdbfe !important;
}

/* Card Header: Label + Icon */
.stat-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    width: 100%;
}

.stat-card .label {
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: #64748b !important;
    margin: 0 !important;
    letter-spacing: -0.01em !important;
    order: 1;
    /* Icon right, label left */
}

/* Icon Box Styling */
.stat-card .icon-box {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    color: #2563eb;
    transition: all 0.3s ease;
    order: 2;
}

.stat-card:hover .icon-box {
    background: #2563eb;
    color: white;
    transform: rotate(6deg) scale(1.05);
}

.stat-card.alert .icon-box {
    background: #fef2f2;
    color: #dc2626;
}

.stat-card.alert:hover .icon-box {
    background: #dc2626;
    color: white;
}

/* Values */
.stat-card .value {
    font-size: 2.25rem !important;
    font-weight: 800 !important;
    color: #2563eb !important;
    letter-spacing: -0.03em !important;
    margin: 4px 0 !important;
    line-height: 1.1 !important;
}

.stat-card .value-primary {
    color: #2563eb !important;
}

/* Sub-labels & Trends */
.stat-card .sub-label {
    font-size: 0.75rem !important;
    color: #94a3b8 !important;
    margin-top: auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.trend-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 99px;
    font-size: 0.7rem;
    font-weight: 600;
}

.trend-badge.success {
    background: #dcfce7;
    color: #166534;
}

.trend-badge.error {
    background: #fee2e2;
    color: #991b1b;
}

/* Progress Bar Overrides */
.stat-card .progress-bar {
    background: #f1f5f9 !important;
    height: 6px !important;
}

.stat-card .progress {
    background: linear-gradient(90deg, #2563eb, #60a5fa) !important;
}