/**
 * ARTATALENT — Fluid Human-Centered Design System
 * Sleek, alive, modern, professional HR software aesthetic
 */

/* Cards & Panels */
/* Standardized Icon-Only Back Button */
.btn-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.18s ease;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.btn-back:hover {
    background: var(--bg-hover);
    color: var(--color-primary-600);
    border-color: var(--color-primary-500);
    transform: translateX(-2px);
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.18);
}
.btn-back svg {
    width: 20px;
    height: 20px;
    display: block;
    stroke: currentColor;
}

.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    margin-bottom: 1.5rem;
    transition: var(--transition);
    position: relative;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}

.card-header {
    padding: 1.2rem 1.6rem;
    border-bottom: 1px solid var(--border-card);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.015em;
}

.card-subtitle {
    font-size: 0.785rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.card-body {
    padding: 1.6rem;
}

.card-footer {
    padding: 1.1rem 1.6rem;
    background-color: var(--bg-card-subtle);
    border-top: 1px solid var(--border-card);
    border-bottom-left-radius: var(--radius-xl);
    border-bottom-right-radius: var(--radius-xl);
}

/* Metric Cards Grid - Ultra Compact & Responsive for PC & Mobile */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.15rem;
}

@media (max-width: 1100px) {
    .metrics-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.65rem;
    }
}

@media (max-width: 640px) {
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        margin-bottom: 0.85rem;
    }
}

.metric-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 0.75rem 0.95rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.metric-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2.5px;
    background: transparent;
    transition: var(--transition);
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px -3px rgba(15, 23, 42, 0.08);
    border-color: rgba(14, 165, 233, 0.35);
}

.metric-card:hover::after {
    background: linear-gradient(90deg, #0284c7, #38bdf8);
}

.metric-info {
    line-height: 1.15;
    min-width: 0;
}

.metric-label {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.metric-value {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.metric-icon-box {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}

.metric-icon-box svg {
    width: 18px;
    height: 18px;
}

.metric-card:hover .metric-icon-box {
    transform: scale(1.06);
}

.icon-blue { background-color: #e0f2fe; color: #0284c7; }
.icon-amber { background-color: #fef3c7; color: #d97706; }
.icon-teal { background-color: #ccfbf1; color: #0d9488; }
.icon-purple { background-color: #ede9fe; color: #7c3aed; }
.icon-emerald { background-color: #d1fae5; color: #059669; }
.icon-rose { background-color: #ffe4e6; color: #e11d48; }

[data-theme="dark"] .icon-blue { background-color: rgba(2, 132, 199, 0.18); color: #38bdf8; }
[data-theme="dark"] .icon-amber { background-color: rgba(217, 119, 6, 0.18); color: #fbbf24; }
[data-theme="dark"] .icon-teal { background-color: rgba(13, 148, 136, 0.18); color: #2dd4bf; }
[data-theme="dark"] .icon-purple { background-color: rgba(124, 58, 237, 0.18); color: #a78bfa; }
[data-theme="dark"] .icon-emerald { background-color: rgba(5, 150, 105, 0.18); color: #34d399; }
[data-theme="dark"] .icon-rose { background-color: rgba(225, 29, 72, 0.18); color: #fb7185; }

/* Recruitment Pipeline Visual - Compact & Responsive */
.pipeline-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(115px, 1fr));
    gap: 0.55rem;
    margin-bottom: 0;
}

@media (min-width: 1200px) {
    .pipeline-container {
        grid-template-columns: repeat(7, 1fr);
    }
}

@media (max-width: 640px) {
    .pipeline-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.45rem;
    }
}

.pipeline-stage {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 0.65rem 0.8rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.02);
    color: var(--text-main);
    display: block;
}

.pipeline-stage:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
    border-color: rgba(14, 165, 233, 0.4);
}

.pipeline-stage.active-filter {
    border-color: var(--color-primary-500) !important;
    background: var(--bg-hover) !important;
    box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.35), var(--shadow-sm);
}

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

.pipeline-stage.stage-blue::before { background: linear-gradient(90deg, #0284c7, #38bdf8); }
.pipeline-stage.stage-amber::before { background: linear-gradient(90deg, #d97706, #fbbf24); }
.pipeline-stage.stage-teal::before { background: linear-gradient(90deg, #0d9488, #2dd4bf); }
.pipeline-stage.stage-indigo::before { background: linear-gradient(90deg, #4f46e5, #818cf8); }
.pipeline-stage.stage-purple::before { background: linear-gradient(90deg, #7c3aed, #a78bfa); }
.pipeline-stage.stage-emerald::before { background: linear-gradient(90deg, #059669, #34d399); }
.pipeline-stage.stage-rose::before { background: linear-gradient(90deg, #e11d48, #fb7185); }
.pipeline-stage.stage-slate::before { background: linear-gradient(90deg, #475569, #94a3b8); }

.pipeline-stage-name {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pipeline-stage-count {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.1;
}

@media (max-width: 640px) {
    .metric-card {
        padding: 0.6rem 0.75rem;
    }
    .metric-value {
        font-size: 1.2rem;
    }
    .metric-icon-box {
        width: 32px;
        height: 32px;
    }
    .metric-icon-box svg {
        width: 16px;
        height: 16px;
    }
    .pipeline-stage {
        padding: 0.55rem 0.65rem;
    }
    .pipeline-stage-count {
        font-size: 1.15rem;
    }
    .pipeline-stage-name {
        font-size: 0.68rem;
    }
}

/* Status Badges with High-End SaaS Dot Indicators (Zero Emoji) */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.28rem 0.75rem;
    border-radius: var(--radius-full);
    white-space: nowrap;
    line-height: 1.25;
}

.badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 99px;
    background: currentColor;
    display: inline-block;
}

.badge-blue { background-color: #f0f9ff; color: #0284c7; border: 1px solid #bae6fd; }
.badge-amber { background-color: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.badge-teal { background-color: #f0fdfa; color: #0f766e; border: 1px solid #99f6e4; }
.badge-indigo { background-color: #eef2ff; color: #4338ca; border: 1px solid #c7d2fe; }
.badge-purple { background-color: #f5f3ff; color: #6d28d9; border: 1px solid #ddd6fe; }
.badge-emerald { background-color: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.badge-rose { background-color: #fff1f2; color: #be123c; border: 1px solid #fecdd3; }
.badge-slate { background-color: #f8fafc; color: #475569; border: 1px solid #e2e8f0; }

[data-theme="dark"] .badge-blue { background-color: rgba(2, 132, 199, 0.18); color: #38bdf8; border-color: rgba(56, 189, 248, 0.3); }
[data-theme="dark"] .badge-amber { background-color: rgba(217, 119, 6, 0.18); color: #fbbf24; border-color: rgba(251, 191, 36, 0.3); }
[data-theme="dark"] .badge-teal { background-color: rgba(13, 148, 136, 0.18); color: #2dd4bf; border-color: rgba(45, 212, 191, 0.3); }
[data-theme="dark"] .badge-indigo { background-color: rgba(79, 70, 229, 0.18); color: #a5b4fc; border-color: rgba(165, 180, 252, 0.3); }
[data-theme="dark"] .badge-purple { background-color: rgba(124, 58, 237, 0.18); color: #c084fc; border-color: rgba(192, 132, 252, 0.3); }
[data-theme="dark"] .badge-emerald { background-color: rgba(5, 150, 105, 0.18); color: #34d399; border-color: rgba(52, 211, 153, 0.3); }
[data-theme="dark"] .badge-rose { background-color: rgba(225, 29, 72, 0.18); color: #fb7185; border-color: rgba(251, 113, 133, 0.3); }
[data-theme="dark"] .badge-slate { background-color: rgba(148, 163, 184, 0.15); color: #cbd5e1; border-color: rgba(148, 163, 184, 0.25); }

/* Tables - Compact, Zero-Clipping & Fully Responsive */
.table-responsive {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    position: relative;
    touch-action: pan-x pan-y;
}

.data-table {
    width: 100%;
    min-width: 100%;
    border-collapse: collapse;
    font-size: 0.815rem;
    text-align: left;
}

.data-table th {
    background-color: var(--bg-card-subtle, #f8fafc);
    color: var(--text-muted, var(--color-slate-500));
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.685rem;
    letter-spacing: 0.05em;
    padding: 0.65rem 0.85rem;
    border-bottom: 1px solid var(--border-card);
    white-space: nowrap;
    user-select: none;
}

.data-table td {
    padding: 0.7rem 0.85rem;
    border-bottom: 1px solid var(--border-card);
    color: var(--text-main, var(--color-navy-850));
    vertical-align: middle;
    font-size: 0.815rem;
}

.data-table tbody tr {
    transition: background-color 0.15s ease;
}

.data-table tbody tr:hover {
    background-color: var(--bg-hover, var(--color-slate-50));
}

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

/* User snippet in table - Zero text overlap */
.user-cell {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.user-avatar-tbl {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    overflow: hidden;
    position: relative;
    background: #e2e8f0;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}
.user-avatar-tbl img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-full);
    display: block;
}


.user-cell-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.25;
}

.user-cell-name {
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.825rem;
    display: block;
    line-height: 1.3;
    transition: color 0.15s ease;
}

.user-cell-name:hover {
    color: var(--color-primary-600);
}

.user-cell-sub {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-family: var(--font-mono, monospace);
    font-weight: 500;
    letter-spacing: 0.02em;
    margin-top: 1px;
    display: block;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .data-table th, 
    .data-table td {
        padding: 0.55rem 0.65rem;
    }
    .user-avatar-tbl {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
    .user-cell-name {
        font-size: 0.8rem;
    }
    .user-cell-sub {
        font-size: 0.675rem;
    }
}

/* Pagination */
.pagination-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.15rem 1.5rem;
    border-top: 1px solid var(--border-card);
    background-color: var(--bg-card);
    flex-wrap: wrap;
    gap: 0.75rem;
}

.pagination-info {
    font-size: 0.825rem;
    color: var(--text-muted);
}

.pagination-links {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.page-btn {
    min-width: 34px;
    height: 34px;
    padding: 0 0.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-card);
    background-color: var(--bg-card);
    color: var(--text-main);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.page-btn:hover {
    background-color: var(--bg-hover);
    border-color: var(--color-primary-400);
    color: var(--color-primary-600);
}

.page-btn.active {
    background-color: var(--color-primary-600);
    color: #ffffff !important;
    border-color: var(--color-primary-600);
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.3);
}

/* Tabs */
.tabs-nav {
    display: flex;
    gap: 0.25rem;
    border-bottom: 1px solid var(--border-card);
    background-color: var(--bg-card);
    padding: 0 1.25rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.tabs-nav::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    padding: 0.95rem 1.15rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    background: none;
    border: none;
    border-bottom: 2.5px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition: var(--transition);
}

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

.tab-btn.active {
    color: var(--color-primary-600);
    border-bottom-color: var(--color-primary-600);
}

.tab-pane {
    display: none;
    padding: 1.5rem 0;
    animation: fadeIn 0.2s ease-out;
}

.tab-pane.active {
    display: block;
}

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

/* Stepper Wizard */
.wizard-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-card);
    padding: 1.25rem 1.75rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-card);
    margin-bottom: 1.5rem;
    overflow-x: auto;
    gap: 0.75rem;
    box-shadow: var(--shadow-sm);
}

.step-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    cursor: pointer;
    flex-shrink: 0;
    opacity: 0.55;
    transition: var(--transition);
}

.step-item.active {
    opacity: 1;
}

.step-item.completed {
    opacity: 0.9;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background-color: var(--bg-card-subtle);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    border: 2px solid var(--border-card);
    transition: var(--transition);
}

.step-item.active .step-number {
    background-color: var(--color-primary-600);
    border-color: var(--color-primary-600);
    color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.2);
}

.step-item.completed .step-number {
    background-color: var(--color-emerald);
    border-color: var(--color-emerald);
    color: #ffffff !important;
}

.step-title {
    font-size: 0.825rem;
    font-weight: 700;
    color: var(--text-main);
}

.wizard-step-content {
    display: none;
    animation: fadeIn 0.2s ease-out;
}

.wizard-step-content.active {
    display: block;
}

/* Form Repeater Box */
.repeater-card {
    background: var(--bg-card-subtle, #f8fafc);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-bottom: 0.85rem;
    position: relative;
    box-shadow: var(--shadow-xs);
    color: var(--text-main);
}

.repeater-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.85rem;
}

.repeater-index-badge {
    font-size: 0.725rem;
    font-weight: 700;
    color: var(--text-muted);
    background: var(--bg-hover);
    border: 1px solid var(--border-card);
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
}

/* Toast Container */
.toast-container {
    position: fixed;
    bottom: 1.75rem;
    right: 1.75rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 380px;
    width: 100%;
    pointer-events: none;
}

.toast {
    background: var(--color-navy-900);
    color: var(--color-white);
    padding: 0.95rem 1.25rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    pointer-events: auto;
    animation: toastSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    border-left: 4px solid var(--color-primary-500);
}

.toast.toast-success { border-left-color: var(--color-emerald); }
.toast.toast-error { border-left-color: var(--color-rose); }
.toast.toast-warning { border-left-color: var(--color-amber); }

@keyframes toastSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Modal */
.modal,
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(6, 9, 19, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 500;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.active,
.modal.show,
.modal-backdrop.active {
    display: flex !important;
}

.modal-dialog {
    background: var(--bg-card);
    border-radius: var(--radius-2xl);
    max-width: 540px;
    width: 100%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-card);
    overflow: hidden;
    animation: modalScaleUp 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--text-main);
}

@keyframes modalScaleUp {
    from {
        opacity: 0;
        transform: scale(0.94);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

.modal-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    padding: 0;
}

.modal-close:hover {
    background: var(--bg-hover);
    color: var(--text-main);
}

.modal-body {
    padding: 1.75rem;
    max-height: 75vh;
    overflow-y: auto;
    color: var(--text-main);
}

.modal-footer {
    padding: 1.15rem 1.75rem;
    background: var(--bg-card-subtle, var(--color-slate-50));
    border-top: 1px solid var(--border-card);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
}

/* Compact Modals for Mobile (HP) & Confirmation Popups */
.modal-sm .modal-dialog,
.modal-confirm .modal-dialog {
    max-width: min(340px, 92vw) !important;
    border-radius: 16px !important;
}

.modal-confirm-icon {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem auto;
}
.modal-confirm-icon.danger {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}
.modal-confirm-icon.warning {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
}
.modal-confirm-icon.primary {
    background: rgba(2, 132, 199, 0.12);
    color: #0284c7;
}

@media (max-width: 640px) {
    .modal {
        padding: 0.75rem !important;
    }

    .modal-dialog {
        max-width: min(340px, 92vw) !important;
        border-radius: 16px !important;
        margin: 0 auto !important;
    }

    .modal-header {
        padding: 0.75rem 1rem !important;
    }

    .modal-title {
        font-size: 0.95rem !important;
    }

    .modal-close {
        width: 28px !important;
        height: 28px !important;
        font-size: 1.2rem !important;
    }

    .modal-body {
        padding: 0.85rem 1rem !important;
        font-size: 0.815rem !important;
        max-height: 70vh !important;
    }

    .modal-footer {
        padding: 0.65rem 1rem !important;
        gap: 0.4rem !important;
    }

    .modal-footer .btn {
        font-size: 0.785rem !important;
        padding: 0.35rem 0.75rem !important;
    }
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 1.75rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 6px;
    bottom: 0;
    width: 2px;
    background-color: var(--color-slate-200);
}

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
}

.timeline-marker {
    position: absolute;
    left: -1.75rem;
    top: 2px;
    width: 16px;
    height: 16px;
    border-radius: var(--radius-full);
    background-color: var(--color-primary-600);
    border: 3px solid var(--color-white);
    box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.25);
}

.timeline-date {
    font-size: 0.75rem;
    color: var(--color-slate-400);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.timeline-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-main);
}

.timeline-desc {
    font-size: 0.825rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
    line-height: 1.5;
}

/* ====================================================
   RESPONSIVE LAYOUT & GRID UTILITIES
   ==================================================== */
.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
    gap: 0.65rem;
    align-items: flex-end;
}

.filter-grid label {
    font-size: 0.685rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
    display: block;
}

.filter-grid input,
.filter-grid select {
    height: 34px;
    padding: 0.35rem 0.65rem;
    font-size: 0.8rem;
    border-radius: var(--radius-md);
}

.filter-grid .btn {
    height: 34px;
    padding: 0.35rem 0.75rem;
    font-size: 0.775rem;
}

.btn-group {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    flex-wrap: nowrap;
}

.data-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.data-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.data-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.detail-header-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.quick-stats-grid {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

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

.stat-item-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 0.05em;
}

.stat-item-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-main);
    margin-top: 2px;
}

@media (max-width: 900px) {
    .data-grid-2,
    .data-grid-3,
    .data-grid-4 {
        grid-template-columns: 1fr !important;
    }

    .detail-header-banner {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Circular & Compact Icon Buttons */
.btn-icon-round {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: var(--radius-full) !important;
    flex-shrink: 0 !important;
    box-shadow: var(--shadow-sm);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-icon-round svg {
    margin: 0 !important;
    display: block !important;
}
.btn-icon-round:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.btn-icon-round:active {
    transform: scale(0.95);
}

/* Interview Filter Bar & Horizontal Swipeable Pills */
.interview-filter-container {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
.interview-status-scroll {
    display: flex;
    gap: 0.45rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    padding-bottom: 2px;
    max-width: 100%;
    scrollbar-width: thin;
}
.interview-status-scroll::-webkit-scrollbar {
    height: 4px;
}
.interview-status-scroll::-webkit-scrollbar-thumb {
    background: var(--border-card);
    border-radius: 4px;
}
.interview-filter-btn {
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 0.775rem;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
}
.interview-search-box {
    flex-shrink: 0;
}
.interview-search-box input {
    height: 34px;
    width: 240px;
    font-size: 0.8rem;
}
@media (max-width: 768px) {
    .interview-filter-container {
        flex-direction: column;
        align-items: stretch;
        gap: 0.65rem;
    }
    .interview-status-scroll {
        width: 100%;
        overflow-x: auto;
    }
    .interview-search-box {
        width: 100%;
    }
    .interview-search-box input {
        width: 100%;
    }
}

/* Document Page Filter Grid & Spacing */
.doc-filter-grid {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1.2fr auto;
    gap: 0.65rem;
    align-items: flex-end;
}
.doc-col-search label,
.doc-col-type label,
.doc-col-status label {
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 4px;
    display: block;
    color: var(--text-main);
}
.doc-filter-grid input,
.doc-filter-grid select {
    height: 34px !important;
    font-size: 0.8rem !important;
}
.doc-col-actions {
    display: flex;
    gap: 0.35rem;
}
.doc-col-actions button,
.doc-col-actions a {
    height: 34px !important;
    font-size: 0.8rem !important;
    padding: 0 0.85rem !important;
}
@media (max-width: 900px) {
    .doc-filter-grid {
        grid-template-columns: 1fr 1fr !important;
    }
    .doc-col-search {
        grid-column: span 2 !important;
    }
    .doc-col-actions {
        grid-column: span 2 !important;
    }
}
@media (max-width: 480px) {
    .doc-filter-grid {
        grid-template-columns: 1fr !important;
    }
    .doc-col-search,
    .doc-col-actions {
        grid-column: span 1 !important;
    }
}

/* Report Filter Grid */
.report-filter-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr) auto;
    gap: 0.65rem;
    align-items: flex-end;
}
.report-filter-grid label {
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 4px;
    display: block;
    color: var(--text-main);
}
.report-filter-grid input,
.report-filter-grid select {
    height: 34px !important;
    font-size: 0.8rem !important;
}
.report-col-actions {
    display: flex;
    gap: 0.35rem;
}
.report-col-actions button,
.report-col-actions a {
    height: 34px !important;
    font-size: 0.8rem !important;
    padding: 0 0.85rem !important;
}
@media (max-width: 1100px) {
    .report-filter-grid {
        grid-template-columns: 1fr 1fr 1fr !important;
    }
}
@media (max-width: 768px) {
    .report-filter-grid {
        grid-template-columns: 1fr 1fr !important;
    }
    .report-col-actions {
        grid-column: span 2 !important;
    }
}
@media (max-width: 480px) {
    .report-filter-grid {
        grid-template-columns: 1fr !important;
    }
    .report-col-actions {
        grid-column: span 1 !important;
    }
}

/* Force Uppercase for required applicant form inputs */
.uppercase-input {
    text-transform: uppercase !important;
}

/* Action Icon Buttons */
.btn-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md, 8px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.btn-action-icon:hover {
    transform: translateY(-2px) scale(1.06);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    filter: brightness(0.96);
}
.btn-action-icon:active {
    transform: translateY(0) scale(0.98);
}

/* Applicant Document Upload Cards (KK, KTP, Ijazah, SKCK) */
.applicant-doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.15rem;
    margin-top: 0.85rem;
}
.applicant-doc-card {
    background: var(--bg-card);
    border: 1.5px dashed var(--border-card);
    border-radius: var(--radius-lg);
    padding: 1.15rem;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}
.applicant-doc-card:hover {
    border-color: var(--color-primary-400);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.applicant-doc-card.has-file {
    border-style: solid;
    border-color: rgba(16, 185, 129, 0.35);
    background: linear-gradient(to bottom, var(--bg-card), rgba(16, 185, 129, 0.03));
}
.applicant-doc-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}
.applicant-doc-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.applicant-doc-info {
    flex: 1;
    min-width: 0;
}
.applicant-doc-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.3;
}
.applicant-doc-desc {
    font-size: 0.725rem;
    color: var(--text-muted);
    margin-top: 2px;
}
.applicant-doc-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}



