/* ══════════════════════════════════════════════
 *  Backbone – Custom Stylesheet
 *  Basic-Fit Security HR Platform
 * ══════════════════════════════════════════════ */

/* ── CSS Custom Properties ── */
:root {
    --color-primary: #FE7000;
    --color-primary-hover: #E56400;
    --color-primary-light: #FFF3E8;
    --color-sidebar-bg: #1A1A2E;
    --color-sidebar-active: #16213E;
    --color-sidebar-hover: #1F2544;
    --color-body-bg: #F4F5F9;
}

/* ── Base ── */
body {
    background-color: var(--color-body-bg);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ── Scrollbar styling (subtiel, past bij donkere sidebar) ── */
.sidebar-scroll::-webkit-scrollbar {
    width: 4px;
}
.sidebar-scroll::-webkit-scrollbar-track {
    background: transparent;
}
.sidebar-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
}
.sidebar-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Content area scrollbar */
.content-scroll::-webkit-scrollbar {
    width: 6px;
}
.content-scroll::-webkit-scrollbar-track {
    background: transparent;
}
.content-scroll::-webkit-scrollbar-thumb {
    background: #D1D5DB;
    border-radius: 3px;
}

/* ── Primary button ── */
.btn-primary {
    background-color: var(--color-primary);
    color: white;
    transition: background-color 150ms ease, box-shadow 150ms ease;
}
.btn-primary:hover {
    background-color: var(--color-primary-hover);
    box-shadow: 0 2px 8px rgba(254, 112, 0, 0.3);
}

/* ── Sidebar ── */
.sidebar {
    background-color: var(--color-sidebar-bg);
    transition: width 200ms ease;
}
.sidebar-link {
    transition: background-color 150ms ease, color 150ms ease;
}
.sidebar-link:hover {
    background-color: var(--color-sidebar-hover);
}
.sidebar-link.active {
    background-color: var(--color-sidebar-active);
    border-left: 3px solid var(--color-primary);
}

/* ── Cards ── */
.card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
    transition: box-shadow 200ms ease;
}
.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.05);
}
.card-static {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
}

/* ── Pipeline kolommen ── */
.pipeline-column {
    min-width: 280px;
    max-width: 320px;
    background: #F9FAFB;
    border-radius: 0.75rem;
    border: 1px solid #E5E7EB;
}

/* ── Pipeline kaartjes ── */
.pipeline-card {
    background: white;
    border-radius: 0.5rem;
    border: 1px solid #E5E7EB;
    transition: box-shadow 150ms ease, transform 150ms ease;
    cursor: pointer;
}
.pipeline-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

/* ── Status badges ── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.125rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.25rem;
}

/* ── Timeline ── */
.timeline-line {
    position: absolute;
    left: 1.0625rem;
    top: 2.5rem;
    bottom: 0;
    width: 2px;
    background: #E5E7EB;
}
.timeline-dot {
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 9999px;
    border: 2px solid white;
    box-shadow: 0 0 0 2px #D1D5DB;
    position: relative;
    z-index: 1;
}
.timeline-dot.status-change {
    box-shadow: 0 0 0 2px var(--color-primary);
    background: var(--color-primary);
}
.timeline-dot.document {
    box-shadow: 0 0 0 2px #3B82F6;
    background: #3B82F6;
}
.timeline-dot.email {
    box-shadow: 0 0 0 2px #8B5CF6;
    background: #8B5CF6;
}
.timeline-dot.note {
    box-shadow: 0 0 0 2px #6B7280;
    background: #6B7280;
}

/* ── Avatar ── */
.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    font-weight: 600;
    flex-shrink: 0;
}
.avatar-sm { width: 2rem; height: 2rem; font-size: 0.75rem; }
.avatar-md { width: 2.5rem; height: 2.5rem; font-size: 0.8125rem; }
.avatar-lg { width: 3rem; height: 3rem; font-size: 1rem; }
.avatar-xl { width: 4rem; height: 4rem; font-size: 1.25rem; }

/* ── Document checklist ── */
.doc-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #F3F4F6;
}
.doc-item:last-child {
    border-bottom: none;
}

/* ── Stat kaart oranje accent ── */
.stat-accent {
    border-left: 4px solid var(--color-primary);
}

/* ── Tab navigatie ── */
.tab-active {
    color: var(--color-primary);
    border-bottom: 2px solid var(--color-primary);
}

/* ── Progress bar ── */
.progress-bar {
    background-color: #E5E7EB;
    border-radius: 9999px;
    overflow: hidden;
    height: 0.375rem;
}
.progress-bar-fill {
    height: 100%;
    border-radius: 9999px;
    background-color: var(--color-primary);
    transition: width 500ms ease;
}

/* ── Responsive: verberg sidebar op mobile, toon als overlay ── */
@media (max-width: 1023px) {
    .sidebar {
        position: fixed;
        z-index: 40;
        height: 100vh;
    }
    .sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 39;
    }
}

/* ── Focus ring override voor Basic-Fit oranje ── */
input:focus, select:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(254, 112, 0, 0.2);
    border-color: var(--color-primary) !important;
}

/* ── Form input styling ── */
.form-input {
    border: 1px solid #D1D5DB;
    border-radius: 0.5rem;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    width: 100%;
    background-color: #ffffff;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

/* ── Animation: fade in from bottom ── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.animate-fade-in-up {
    animation: fadeInUp 300ms ease forwards;
}

/* ── iOS: prevent auto-zoom on input focus (font-size < 16px triggers zoom) ── */
@media screen and (max-width: 768px) {
    input, select, textarea {
        font-size: 1rem !important;
    }
}

/* ── Print: verberg sidebar en topbar ── */
@media print {
    .sidebar, .topbar, .no-print { display: none !important; }
    .main-content { margin-left: 0 !important; }
}
