/* --- MODERN 2025+ PREMIUM THEME --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* --- KLEUREN & VARIABELEN --- */
:root {
    --teal: #6EC3BF;
    --yellow: #FFE142;
    --dark-blue: #051D2E;
    --light-gray: #E5E8EB;
    --font-stack: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    
    /* Bootstrap Overrides voor een custom thema */
    --bs-primary: var(--dark-blue);
    --bs-secondary: #6c757d;
    --bs-info: var(--teal);
    --bs-warning: var(--yellow);
    --bs-body-bg: #f4f7f9; /* Zeer lichte, professionele achtergrond */
    --bs-body-font-family: var(--font-stack);
    --bs-body-color: #212529;
    --bs-card-border-color: rgba(0, 0, 0, 0.05);
    --bs-card-box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.07);
}

/* --- STIJLEN VOOR DE LOGIN PAGINA --- */
body.login-page {
    background-color: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1rem;
    padding-top: 0;
}

.login-container {
    width: 100%;
    max-width: 420px;
}

.login-card {
    background: #ffffff;
    border: 1px solid #dce1e6;
    border-radius: 24px;
    padding: 2.5rem;
    color: var(--dark-blue);
    box-shadow: 0 10px 40px 0 rgba(0, 0, 0, 0.1);
}

.login-logo {
    max-height: 60px;
    width: auto;
    max-width: 100%;
}

.login-title {
    font-weight: 700;
    color: var(--dark-blue);
    text-align: center;
}

.login-subtitle {
    text-align: center;
    color: #6c757d;
}

.login-page .form-control {
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
    color: var(--dark-blue);
    padding: 1rem;
}
.login-page .form-control:focus {
    background-color: white;
    border-color: var(--teal);
    box-shadow: 0 0 0 4px rgba(110, 195, 191, 0.3);
}

.login-page .btn-primary {
    background-color: var(--dark-blue);
    border: none;
    font-weight: 600;
    padding: 0.8rem;
    color: white;
    transition: all 0.3s ease;
}

.login-page .btn-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(5, 29, 46, 0.2);
    background-color: #1c3447;
}

.login-page a {
    color: var(--teal);
    font-weight: 500;
    text-decoration: none;
}
.login-page a:hover {
    text-decoration: underline;
}

/* --- ALGEMENE STIJLEN (VOOR DE REST VAN DE APP) --- */
body {
    background-color: var(--bs-body-bg);
    font-family: var(--bs-body-font-family);
    padding-top: 80px;
}

.bg-light-transparent {
    background-color: rgba(233, 239, 241, 0.7) !important; /* Subtiele teal tint */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.navbar-brand img {
    max-height: 40px; /* Logo hoogte in de header */
}

.card {
    border: 1px solid var(--bs-card-border-color);
    box-shadow: var(--bs-card-box-shadow);
    background-color: #ffffff;
    transition: all 0.2s ease-in-out;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0px 20px 40px -10px rgba(0, 0, 0, 0.08);
}

h2, h3, h4, h5 {
    color: #1c3447;
    font-weight: 600;
}

.btn {
    font-weight: 500;
    transition: all 0.2s ease-in-out;
    padding: .5rem 1rem; /* Iets compactere knoppen */
    font-size: 0.9rem;
}

.btn-lg {
    padding: .8rem 1.5rem;
    font-size: 1rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-info {
    background-color: var(--bs-warning);
    border-color: var(--bs-warning);
    color: var(--dark-blue);
}

.btn-info:hover {
    background-color: #e9c83d;
    border-color: #e9c83d;
    color: var(--dark-blue);
}

.table {
    --bs-table-bg: transparent;
    --bs-table-hover-bg: rgba(0, 0, 0, 0.03);
    --bs-table-striped-bg: rgba(0, 0, 0, 0.02);
}

.table th {
    font-weight: 500;
    color: #6c757d;
    text-transform: uppercase;
    font-size: 0.8em;
    letter-spacing: 0.5px;
    border-bottom-width: 1px;
}

.notification-badge-bootstrap {
    position: absolute;
    top: 5px;
    right: -5px;
    font-size: 0.6em;
}

.chart-container {
    position: relative;
    width: 100%;
    max-width: 450px;
    margin: auto;
    height: 350px;
}

.priority-label { display: inline-block; padding: .25em .6em; font-size: .75em; font-weight: 700; line-height: 1; text-align: center; white-space: nowrap; vertical-align: baseline; border-radius: .375rem; }
.priority-hoog { color: #842029; background-color: #f8d7da; }
.priority-normaal { color: #664d03; background-color: #fff3cd; }
.priority-laag { color: #41464b; background-color: #e2e3e5; }

.score-increase { color: #198754; font-weight: 600; }
.score-decrease { color: #dc3545; font-weight: 600; }

.task-item {
    padding: 1.5rem;
    border: 1px solid #dee2e6;
    border-radius: .375rem;
    margin-bottom: 1.5rem;
    background-color: rgba(0,0,0,0.02);
}
.reassign-form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.reassign-form select {
    flex-grow: 1;
}
.reassign-form button {
    width: auto;
    font-size: 0.9em;
}


/* --- STIJLEN VOOR VERBETERDE, LEESBARE HISTORIE --- */
.history-log {
    max-height: 550px; /* Meer ruimte voor de items */
    overflow-y: auto;
    padding-left: 25px; /* Ruimte voor de tijdlijn */
    position: relative;
}

/* De verticale lijn van de tijdlijn */
.history-log::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background-color: #dee2e6;
}

.history-item {
    position: relative;
    padding: 1.5rem;
    border: 1px solid var(--bs-card-border-color);
    border-radius: var(--bs-card-border-radius, .375rem);
    margin-bottom: 1.5rem;
    background-color: #fff;
    box-shadow: var(--bs-card-box-shadow);
}

/* Het punt op de tijdlijn */
.history-item::before {
    content: '';
    position: absolute;
    left: -32px; /* Plaatst het punt op de lijn */
    top: 28px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--bs-secondary); /* Neutrale kleur */
    border: 2px solid #fff;
}

/* Kleuren voor verschillende actietypes */
.history-item.type-contactmoment::before { background-color: var(--bs-primary); }
.history-item.type-bezoekverslag::before { background-color: var(--bs-info); }
.history-item.type-email-voorbereid::before { background-color: var(--bs-warning); }

.history-item-meta {
    font-weight: 500;
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #6c757d;
    font-size: 0.85em;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #eee;
}

.history-item-meta .user {
    font-weight: 600;
    color: #212529;
}

.history-item-details {
    margin: 0;
}

.history-details-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0.5rem;
}

.history-details-list li {
    margin-bottom: 0.25rem;
    font-size: 0.9em;
}

.history-note-block {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #f8f9fa; /* Lichte achtergrond voor notitie */
    border-left: 4px solid var(--bs-info);
    border-radius: 0 .375rem .375rem 0;
}

.history-note-block p {
    margin: 0;
    white-space: pre-wrap;
    font-style: italic;
    color: #495057;
}
