/* --- Basis Layout --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&display=swap');

.backlog-container {
    max-width: 1300px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: 'Montserrat', sans-serif;
}

/* --- Header & Filter Sectie --- */
.overview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
}

.overview-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #000000;
    margin: 0;
}

.subtitle {
    color: #666;
    margin-top: 5px;
}

/* Container voor de twee knoppen */
.filter-actions {
    display: flex;
    gap: 15px;
}

/* Gedeelde styling voor beide filter knoppen */
.btn-name-filter, 
.btn-date-filter {
    background-color: #FF007F; 
    color: white;
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.btn-name-filter:hover, 
.btn-date-filter:hover {
    background-color: #e60072;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 0, 127, 0.2);
}

/* --- Tabel Styling --- */
.table-container {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    border: 1px solid #edf2f7;
}

.backlog-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.backlog-table th {
    background-color: #fcfcfc; 
    color: #a0aec0;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 20px;
    letter-spacing: 1.2px;
    border-bottom: 2px solid #edf2f7;
    text-transform: uppercase;
}

.backlog-table td {
    padding: 22px 20px;
    border-bottom: 1px solid #f0f4f8;
    color: #333;
    font-size: 0.95rem;
    vertical-align: middle;
}

/* Tekst styling */
.font-bold {
    font-weight: 700;
    color: #000;
}

.text-muted {
    color: #718096;
}

/* --- Acties & Icons --- */
.actions-cell {
    text-align: right;
    padding-right: 25px !important;
}

.action-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.btn-icon {
    background-color: #f7fafc;
    color: #4a5568;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

/* Hover Effecten Rijen */
.table-row {
    transition: background-color 0.2s;
}

.table-row:hover {
    background-color: #fff9fc; 
}

/* Iconen kleuren bij rij-hover (zoals in mockup) */
.table-row:hover .btn-icon {
    background-color: #edf2f7;
    color: #1a202c;
}

/* Specifieke hover op de icons zelf */
.btn-icon:hover {
    background-color: #FF007F !important;
    color: #ffffff !important;
    transform: scale(1.1);
}

.delete-btn:hover {
    background-color: #000000 !important;
}

/* --- Modal (Pop-up) Logica --- */
.modal-checkbox {
    display: none; 
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

/* Toon modal op basis van ID */
#name-modal-toggle:checked ~ .name-modal-overlay,
#date-modal-toggle:checked ~ .date-modal-overlay {
    display: flex;
}

.modal-container {
    background-color: white;
    width: 95%;
    max-width: 420px;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    position: relative;
}

.modal-header h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: #1a202c;
}

.modal-close-area {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Input Fields */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 1.5rem;
}

.input-group label {
    font-size: 0.75rem;
    font-weight: 800;
    color: #a0aec0;
    text-transform: uppercase;
}

.input-group input {
    padding: 14px;
    border: 2px solid #edf2f7;
    border-radius: 12px;
    outline: none;
    font-family: inherit;
    transition: border-color 0.2s;
}

.input-group input:focus {
    border-color: #FF007F;
}

/* Modal Footer Knoppen */
.modal-footer {
    display: flex;
    justify-content: space-between; 
    gap: 15px;
    margin-top: 1.5rem;
}

.btn-clear {
    background-color: white;
    border: 2px solid #edf2f7;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    color: #4a5568;
    text-decoration: none;
    text-align: center;
    flex: 1;
    transition: all 0.2s;
}

.btn-clear:hover {
    background-color: #f7fafc;
    border-color: #cbd5e0;
}

.btn-apply {
    background-color: #FF007F;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    flex: 1;
    transition: transform 0.2s, background-color 0.2s;
}

.btn-apply:hover {
    background-color: #e60072;
    transform: scale(1.02);
}

/* --- Responsive Layout --- */
@media (max-width: 768px) {
    .overview-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    .filter-actions {
        width: 100%;
    }
    
    .btn-name-filter, .btn-date-filter {
        flex: 1;
        justify-content: center;
        font-size: 0.85rem;
        padding: 12px 10px;
    }

    .table-container {
        border-radius: 0;
        margin: 0 -20px;
        border-left: none;
        border-right: none;
    }
}
/* --- BTW Overzicht --- */
.vat-summary-box {
    background: #ffffff;
    padding: 15px; 
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); 
    margin-bottom: 20px; 
    border: 1px solid #eadcf7;
}

.vat-summary-box h3 {
    margin-top: 0;
    margin-bottom: 10px; 
    font-size: 1.1rem;   
    color: #6f2dbd;
}

.vat-rates-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 10px; 
}

.vat-rate-card {
    background: #f7f1ff;
    padding: 10px; 
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #eadcf7;
}

.vat-label {
    font-size: 0.75rem; 
    color: #666;
    margin-bottom: 2px;
}

.vat-amount {
    font-size: 1rem; 
    color: #161616;
}

/* Specifieke stijl voor de Totaal BTW kaart */
.total-vat-card {
    background: #6f2dbd; 
    border: none;
}

.total-vat-card .vat-label {
    color: #ffffff;
}

.total-vat-card .vat-amount {
    color: #ffffff;
    font-weight: bold;
}

/* Zorg dat de knoppen/filters niet verspringen */
.quarter-filter-container {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
}

.btn-quarter {
    padding: 8px 16px;
    border-radius: 6px;
    background: #f7f1ff;
    color: #6f2dbd;
    text-decoration: none;
    font-weight: bold;
}

.btn-quarter.active {
    background: #6f2dbd;
    color: #ffffff;
}