/* =========================
styles.css
Cleef Bouwmanagement Style
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f7f8fa;
    color: #333333;
    line-height: 1.6;
}

/* HEADER */
.header {
    background: linear-gradient(135deg, #00549F 0%, #0066cc 100%);
    color: white;
    padding: 40px 20px;
    box-shadow: 0 2px 8px rgba(0, 84, 159, 0.2);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
}

.header h1 {
    font-size: 32px;
    margin-bottom: 8px;
    font-weight: 700;
}

.header p {
    font-size: 16px;
    opacity: 0.95;
    font-weight: 300;
}

/* CONTAINER */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* GRID LAYOUT */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* CARDS */
.card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #00549F;
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.card h2 {
    color: #00549F;
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: 700;
    border-bottom: 2px solid #eceff1;
    padding-bottom: 12px;
}

/* FORM ELEMENTS */
.form-label {
    display: block;
    margin: 15px 0 6px 0;
    font-weight: 600;
    color: #1a1a1a;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-field,
.select-field {
    width: 100%;
    padding: 12px 14px;
    margin: 8px 0 16px 0;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: #ffffff;
}

.input-field:focus,
.select-field:focus {
    outline: none;
    border-color: #00549F;
    box-shadow: 0 0 0 3px rgba(0, 84, 159, 0.1);
}

/* BUTTONS */
button {
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 12px 24px;
    text-align: center;
    width: 100%;
}

.btn-primary {
    background-color: #00549F;
    color: white;
    margin-top: 8px;
}

.btn-primary:hover {
    background-color: #003d75;
    box-shadow: 0 4px 12px rgba(0, 84, 159, 0.3);
}

.btn-secondary {
    background-color: #f39c12;
    color: white;
    margin-top: 8px;
}

.btn-secondary:hover {
    background-color: #d68910;
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
}

.btn-apply {
    background-color: #27ae60;
    color: white;
    font-size: 16px;
    padding: 14px 28px;
    margin-top: 16px;
    font-weight: 700;
}

.btn-apply:hover {
    background-color: #229954;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

/* SUMMARY CARD */
.summary {
    border-left-color: #27ae60;
    background: linear-gradient(135deg, #ffffff 0%, #f0f8f5 100%);
}

.summary h2 {
    color: #27ae60;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eceff1;
    font-size: 14px;
}

.summary-row span:last-child {
    font-weight: 600;
    color: #00549F;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
    margin-top: 16px;
    font-size: 18px;
    font-weight: 700;
    color: #00549F;
    border-top: 2px solid #00549F;
}

/* QUICK SELECTOR SECTION */
.quick-selector-section {
    background: white;
    padding: 40px 20px;
    border-top: 2px solid #eceff1;
}

.quick-form {
    background: #f7f8fa;
    padding: 30px;
    border-radius: 8px;
    margin-top: 20px;
}

.quick-selector-section h2 {
    color: #00549F;
    font-size: 28px;
    margin-bottom: 8px;
}

.subtitle {
    color: #666;
    font-size: 16px;
    margin-bottom: 24px;
}

.quick-selector-section h3 {
    color: #1a1a1a;
    font-size: 16px;
    font-weight: 700;
    margin: 24px 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.form-group {
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #1a1a1a;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* CHECKBOX GROUP */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin: 12px 0 24px 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 10px 12px;
    background: white;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.checkbox-label:hover {
    border-color: #00549F;
    background: #f0f6ff;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    cursor: pointer;
    accent-color: #00549F;
}

.divider {
    border: none;
    border-top: 2px solid #eceff1;
    margin: 24px 0;
}

/* QUICK RESULT */
.quick-result {
    background: linear-gradient(135deg, #ecf8f0 0%, #d4f1e8 100%);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    border: 2px solid #27ae60;
    margin-top: 24px;
}

.result-label {
    color: #666;
    font-size: 14px;
    margin-bottom: 8px;
}

.result-amount {
    color: #27ae60;
    font-size: 36px;
    font-weight: 700;
    margin: 12px 0;
}

/* TABLE SECTION */
.table-section {
    background: white;
    padding: 40px 20px;
    border-top: 2px solid #eceff1;
}

.table-section h2 {
    color: #00549F;
    font-size: 24px;
    margin-bottom: 24px;
}

.table-wrapper {
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

table {
    width: 100%;
    background: white;
    border-collapse: collapse;
}

thead {
    background: linear-gradient(135deg, #00549F 0%, #0066cc 100%);
    color: white;
}

th {
    padding: 16px 14px;
    text-align: left;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

td {
    padding: 14px;
    border-bottom: 1px solid #eceff1;
    font-size: 14px;
}

tbody tr {
    transition: background-color 0.2s;
}

tbody tr:hover {
    background-color: #f7f8fa;
}

td button {
    width: auto;
    padding: 6px 12px;
    background-color: #e74c3c;
    color: white;
    font-size: 12px;
    font-weight: 600;
}

td button:hover {
    background-color: #c0392b;
}

/* FOOTER */
.footer {
    background: #1a1a1a;
    color: white;
    text-align: center;
    padding: 24px 20px;
    font-size: 13px;
    border-top: 4px solid #00549F;
    margin-top: 40px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr;
    }

    .header h1 {
        font-size: 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .checkbox-group {
        grid-template-columns: 1fr;
    }

    .quick-result {
        padding: 20px;
    }

    .result-amount {
        font-size: 28px;
    }

    table {
        font-size: 12px;
    }

    th, td {
        padding: 10px 8px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 24px 16px;
    }

    .header h1 {
        font-size: 20px;
    }

    .card {
        padding: 20px;
    }

    .quick-form {
        padding: 20px;
    }

    .result-amount {
        font-size: 24px;
    }
}
