/* ============================================
   Onwaarts – Filament branding
   Stijl: wit/licht, navy tekst, pill knoppen,
   navy gradient accenten
   ============================================ */

/* --- Login split-screen layout --- */
.fi-simple-layout.cp-auth-split {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    justify-content: stretch !important;
    background: none !important;
    min-height: 100vh;
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
    width: 100% !important;
}
.fi-simple-layout.cp-auth-split > .cp-auth-left,
.fi-simple-layout.cp-auth-split > .cp-auth-right {
    flex: 1 1 0 !important;
    min-width: 0;
}

/* Linker kant — branding panel */
.cp-auth-left {
    flex: 1;
    background:
        radial-gradient(at 20% 80%, rgba(59, 92, 157, 0.4) 0%, transparent 55%),
        radial-gradient(at 80% 20%, rgba(10, 42, 94, 0.5) 0%, transparent 50%),
        linear-gradient(135deg, #031531 0%, #0a2a5e 50%, #1e3468 100%);
    color: #fff;
    padding: 2.5rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.cp-auth-brand img { height: 32px; filter: brightness(0) invert(1); }
.cp-auth-content { max-width: 460px; margin: auto 0; }
.cp-auth-card {
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.875rem;
    padding: 1.5rem 1.75rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    color: #031531;
}
.cp-auth-badges { display: flex; gap: 0.5rem; margin-bottom: 0.75rem; }
.cp-auth-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 0.4rem;
}
.cp-auth-badge--navy { background: #e8edf5; color: #1e3468; }
.cp-auth-badge--green { background: #d1fae5; color: #047857; }
.cp-auth-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #031531;
    margin: 0 0 0.5rem;
    letter-spacing: -0.005em;
}
.cp-auth-card p {
    font-size: 0.875rem !important;
    color: #64748b !important;
    line-height: 1.65 !important;
    margin: 0 !important;
}
.cp-auth-card strong { color: #031531; font-weight: 600; }
.cp-auth-stats {
    display: flex;
    gap: 3rem;
    color: rgba(255,255,255,0.5);
}
.cp-auth-stat-num {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
}
.cp-auth-stat-label {
    margin-top: 0.25rem;
    font-size: 0.75rem;
}

/* Rechter kant — login form container */
.cp-auth-split .cp-auth-right {
    flex: 1;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 3rem;
}
.cp-auth-split .fi-simple-main-ctn {
    width: 100%;
    display: flex;
    justify-content: center;
}
.cp-auth-split .fi-simple-main {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    max-width: 420px;
    width: 100%;
    padding: 0 !important;
}

/* Brand naam zichtbaar binnen het form */
.cp-auth-split .fi-logo span,
.cp-auth-split .fi-logo {
    font-weight: 800 !important;
    letter-spacing: -0.04em !important;
    color: #031531 !important;
    font-size: 1.6rem !important;
}
.cp-auth-split .fi-logo img { filter: none !important; }

/* Footer-links (privacy/terms) onder het form: donkere tekst op witte achtergrond */
.cp-auth-split .cp-auth-right footer,
.cp-auth-split .cp-auth-right footer * {
    color: #64748b !important;
}
.cp-auth-split .cp-auth-right footer a {
    color: #64748b !important;
    text-decoration: none;
}
.cp-auth-split .cp-auth-right footer a:hover {
    color: #031531 !important;
    text-decoration: underline;
}

@media (max-width: 920px) {
    .fi-simple-layout.cp-auth-split { flex-direction: column; }
    .cp-auth-left { padding: 2rem 1.5rem; }
    .cp-auth-content { margin: 1.5rem 0; }
    .cp-auth-split .cp-auth-right { padding: 2rem 1.5rem; }
}

/* --- Globale navigatie sidebar --- */
.fi-sidebar {
    background-color: #031531 !important;
    border-right: none !important;
}

.fi-sidebar-nav .fi-sidebar-item-label,
.fi-sidebar-nav a {
    color: rgba(255, 255, 255, 0.75) !important;
}

/* Sidebar iconen */
.fi-sidebar-nav .fi-sidebar-item-btn svg {
    color: rgba(255, 255, 255, 0.45) !important;
}

/* Hover staat */
.fi-sidebar-item-btn:hover {
    background-color: rgba(255, 255, 255, 0.08) !important;
}

.fi-sidebar-item-btn:hover .fi-sidebar-item-label,
.fi-sidebar-item-btn:hover svg {
    color: rgba(255, 255, 255, 0.95) !important;
}

/* Actief item: accent balk links + subtiele achtergrond */
.fi-sidebar-item.fi-active .fi-sidebar-item-btn {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-left: 3px solid #5a76ac !important;
    padding-left: calc(0.75rem - 3px) !important;
}

.fi-sidebar-item.fi-active .fi-sidebar-item-btn .fi-sidebar-item-label {
    color: #ffffff !important;
    font-weight: 600 !important;
}

.fi-sidebar-item.fi-active .fi-sidebar-item-btn svg {
    color: #5a76ac !important;
}

/* Brand naam in sidebar */
.fi-sidebar .fi-logo span,
.fi-sidebar .fi-logo {
    color: #ffffff !important;
}

/* Sidebar logo: wit */
.fi-sidebar .fi-logo img {
    filter: brightness(0) invert(1);
}

/* Sidebar groep labels */
.fi-sidebar-group-label {
    color: rgba(255, 255, 255, 0.35) !important;
    text-transform: uppercase !important;
    font-size: 0.65rem !important;
    letter-spacing: 0.08em !important;
}

/* --- Knoppen: pill-vorm --- */
.fi-btn,
button.fi-btn {
    border-radius: 9999px !important;
}

/* Primary knop: navy */
.fi-btn-color-primary,
.fi-btn[class*="primary"] {
    background-color: #031531 !important;
    color: #ffffff !important;
}

.fi-btn-color-primary:hover {
    background-color: #0a2a5e !important;
}

/* --- Topbar --- */
.fi-topbar {
    background-color: #ffffff !important;
    border-bottom: 1px solid #e8edf5 !important;
    box-shadow: 0 1px 4px rgba(3, 21, 49, 0.06) !important;
}

/* --- Badges afgerond --- */
.fi-badge {
    border-radius: 9999px !important;
}

/* --- RichEditor: klikbaar over hele hoogte --- */
.trix-content,
.ProseMirror {
    min-height: 250px !important;
}

/* --- Prose: paragraaf spacing --- */
.prose p {
    margin-bottom: 0.75em;
}

.prose p:empty {
    margin-bottom: 0.5em;
}

/* --- Zachtere shadows op alle Filament cards --- */
.shadow-sm {
    box-shadow: 0 1px 3px rgba(3, 21, 49, 0.04) !important;
}

/* --- Content achtergrond: licht grijs voor diepte --- */
.fi-main {
    background-color: #f9fafb !important;
}

/* --- Tabel headers: subtiel maar leesbaar --- */
.fi-ta-header-cell {
    color: #64748b !important;
    font-weight: 600 !important;
    font-size: 0.75rem !important;
    letter-spacing: 0.02em !important;
}

/* --- Stat waarden iets groter --- */
.fi-wi-stats-overview-stat-value {
    font-size: 1.6rem !important;
    color: #031531 !important;
    font-weight: 700 !important;
}


/* --- Widget headings --- */
.fi-header-heading {
    color: #031531 !important;
    font-weight: 700 !important;
}

/* --- Tabel rijen: subtiele scheiding --- */
.fi-ta-row {
    border-bottom: 1px solid #f1f5f9 !important;
}

.fi-ta-row:last-child {
    border-bottom: none !important;
}

/* --- Links in tabellen --- */
.fi-ta-text-item a {
    color: #2e4a85 !important;
}

/* --- Formulier labels: iets meer contrast --- */
.fi-field-wrp label {
    color: #334155 !important;
}

/* --- Widget spacing op dashboard --- */
.fi-widgets {
    gap: 1.25rem !important;
}

/* --- Grijze badges subtieler (bijv. "Intern logboek") --- */
.fi-badge.fi-color-gray {
    background-color: #f1f5f9 !important;
    color: #64748b !important;
    border: 1px solid #e2e8f0 !important;
    font-weight: 500 !important;
}


/* ============================================
   Flowforge Kanban — Tailwind not compiled in this project,
   so we provide structural CSS targeting Flowforge's class hooks.
   ============================================ */
.flowforge-column {
    flex: 1 1 0;
    min-width: 280px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 12rem);
    overflow: hidden;
}
.flowforge-column-header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}
.flowforge-column-header h3 {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: #031531;
}
.flowforge-column-content,
.flowforge-column .kanban-cards {
    padding: 0.75rem;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-height: 100px;
}
.flowforge-card-content {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 0.75rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
    cursor: grab;
    transition: box-shadow 0.15s, transform 0.05s;
}
.flowforge-card-content:hover {
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.flowforge-card-content:active {
    cursor: grabbing;
}
.flowforge-card-content h4 {
    margin: 0 0 0.35rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #031531;
    line-height: 1.4;
}
/* Parent flex container — Tailwind's flex-row doesn't apply, force with structural CSS */
[x-data*="flowforge"] > div.flex-1 > div {
    display: flex !important;
    flex-direction: row !important;
    gap: 1.25rem !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    height: 100%;
    padding: 0.5rem 0;
}
[x-data*="flowforge"] {
    display: flex !important;
    flex-direction: column;
    height: calc(100vh - 10rem);
    min-height: 600px;
}
[x-data*="flowforge"] > div.flex-1 {
    flex: 1 1 auto;
    overflow: hidden;
}

/* Custom card layout — overridden card.blade.php */
.cp-task-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 0.75rem 0.875rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
    cursor: pointer;
    transition: box-shadow 0.15s, transform 0.05s;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.cp-task-card:hover {
    box-shadow: 0 2px 8px rgba(3, 21, 49, 0.1);
    border-color: #cbd5e1;
}
.cp-task-card:active {
    cursor: grabbing;
}
.cp-task-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    min-height: 1rem;
}
.cp-task-priority {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.15rem 0.5rem;
    border-radius: 0.3rem;
    line-height: 1.4;
}
.cp-task-due {
    font-size: 0.7rem;
    font-weight: 600;
}
.cp-task-title {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #031531;
    line-height: 1.35;
}
.cp-task-bottom {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.1rem;
}
.cp-task-taskable {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 0.3rem;
    line-height: 1.4;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* --- Notificatie-bel: pulse + groter wanneer er ongelezen notificaties zijn --- */
.fi-topbar-database-notifications-btn .fi-icon-btn-badge-ctn .fi-badge {
    animation: cp-bell-pulse 1.6s infinite ease-in-out;
    font-weight: 800;
    font-size: 0.7rem !important;
    min-width: 1.1rem;
    background: #ef4444 !important;
    color: #fff !important;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(239, 68, 68, 0.25);
}
.fi-topbar-database-notifications-btn:has(.fi-icon-btn-badge-ctn .fi-badge) {
    color: #ef4444;
}
@keyframes cp-bell-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(239, 68, 68, 0.25);
    }
    50% {
        transform: scale(1.15);
        box-shadow: 0 0 0 2px #fff, 0 0 0 8px rgba(239, 68, 68, 0.0);
    }
}


/* --- CSS-only tooltip voor kanban-kolom info-icons --- */
.cp-col-tip {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: #94a3b8;
    cursor: help;
}
.cp-col-tip:hover {
    color: #475569;
}
.cp-col-tip::after {
    content: attr(data-tip);
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #031531;
    color: #fff;
    padding: 0.45rem 0.7rem;
    border-radius: 0.4rem;
    font-size: 0.72rem;
    font-weight: 500;
    white-space: normal;
    width: max-content;
    max-width: 240px;
    line-height: 1.35;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 120ms ease-out, visibility 120ms ease-out;
}
.cp-col-tip::before {
    content: '';
    position: absolute;
    top: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-bottom-color: #031531;
    z-index: 10000;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 120ms ease-out, visibility 120ms ease-out;
}
.cp-col-tip:hover::after,
.cp-col-tip:hover::before {
    opacity: 1;
    visibility: visible;
}

/* --- DatePicker: 'vandaag' en 'geselecteerd' duidelijker maken --- */
.fi-fo-date-time-picker-calendar-day.fi-fo-date-time-picker-calendar-day-today:not(.fi-selected) {
    box-shadow: inset 0 0 0 2px #3b5c9d !important;
    color: #3b5c9d !important;
    font-weight: 700 !important;
}
.fi-fo-date-time-picker-calendar-day.fi-selected {
    background: #3b5c9d !important;
    color: #fff !important;
    font-weight: 700 !important;
}
.fi-fo-date-time-picker-calendar-day.fi-selected:hover {
    background: #2c466f !important;
}
