/* assets/styles.css - Modern styling voor ASAP Service Desk */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    min-height: 100vh;
}

/* ========== HEADER ========== */
.site-header {
    background: white;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.header-left {
    flex: 0 0 auto;
}

.brand-logo {
    display: block;
    height: 40px;
    color: #333;
    transition: opacity 0.2s;
}

.brand-logo:hover {
    opacity: 0.8;
}

#asap-logo {
    height: 100%;
    width: auto;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Language switcher */
.lang-switch {
    display: flex;
    gap: 4px;
    background: #f5f5f5;
    padding: 4px;
    border-radius: 6px;
}

.lang-link {
    padding: 6px 12px;
    text-decoration: none;
    color: #666;
    font-size: 13px;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.2s;
}

.lang-link:hover {
    background: #e0e0e0;
    color: #333;
}

.lang-link.active {
    background: white;
    color: #007bff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Logout link */
.logout-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    text-decoration: none;
    color: #666;
    font-size: 14px;
    border-radius: 4px;
    transition: all 0.2s;
}

.logout-link:hover {
    background: #f5f5f5;
    color: #dc3545;
}

.logout-link svg {
    flex-shrink: 0;
}

/* ========== BREADCRUMB NAVIGATION ========== */
.breadcrumb-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 20px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-item:hover {
    color: #007bff;
}

.breadcrumb-item.active {
    color: #007bff;
    font-weight: 500;
}

.breadcrumb-item.completed {
    color: #28a745;
}

.breadcrumb-separator {
    color: #ccc;
    user-select: none;
}

/* Breadcrumb icons */
.breadcrumb-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    background: #e9ecef;
    color: #666;
    flex-shrink: 0;
}

.breadcrumb-item.completed .breadcrumb-icon {
    background: #28a745;
    color: white;
}

.breadcrumb-item.active .breadcrumb-icon {
    background: #007bff;
    color: white;
}

/* ========== MAIN CONTENT ========== */
.main-content-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* Steps container (deprecated - keeping for backward compat) */
.steps-container {
    display: none; /* Hidden - replaced by breadcrumb */
}

/* Form container */
.form-container {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.form-container h2 {
    margin-bottom: 8px;
    color: #222;
    font-size: 24px;
    font-weight: 600;
}

.form-container > p:first-of-type {
    color: #666;
    margin-bottom: 24px;
    font-size: 15px;
}

/* ========== FORM ELEMENTS ========== */
label {
    display: block;
    margin-bottom: 6px;
    margin-top: 16px;
    font-weight: 500;
    color: #444;
    font-size: 14px;
}

label:first-of-type {
    margin-top: 0;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="time"],
input[type="number"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 4px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

input[readonly] {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.5;
}

small {
    display: block;
    margin-top: 4px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #666;
}

/* Fieldsets */
fieldset {
    border: none;
    padding: 0;
    margin: 0 0 20px 0;
}

legend {
    font-weight: 600;
    font-size: 16px;
    color: #333;
    margin-bottom: 12px;
    padding: 0;
}

/* Buttons */
button,
.button,
.cta-button {
    background-color: #007bff;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    font-family: inherit;
}

button:hover,
.button:hover,
.cta-button:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,123,255,0.2);
}

button:active {
    transform: translateY(0);
}

button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

button.secondary,
.cta-button.secondary {
    background-color: #6c757d;
}

button.secondary:hover,
.cta-button.secondary:hover {
    background-color: #5a6268;
}

/* ========== ERROR & SUCCESS MESSAGES ========== */
.error-message {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 4px;
    color: #856404;
}

.error-message ul {
    margin: 0;
    padding-left: 20px;
}

.error-message li {
    margin: 4px 0;
}

.success-message,
.info-banner {
    background: #d4edda;
    border-left: 4px solid #28a745;
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 4px;
    color: #155724;
}

.info-banner {
    background: #e7f3ff;
    border-left-color: #2196F3;
    color: #1976D2;
}

/* ========== DASHBOARD & TABLES ========== */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.dashboard-header h1 {
    font-size: 28px;
    font-weight: 600;
    color: #222;
    margin: 0;
}

.requests-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.requests-table thead {
    background: #f8f9fa;
}

.requests-table th {
    text-align: left;
    padding: 12px 16px;
    font-weight: 600;
    font-size: 13px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.requests-table td {
    padding: 14px 16px;
    border-top: 1px solid #e9ecef;
}

.requests-table tr:hover {
    background: #f8f9fa;
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-open {
    background-color: #d4edda;
    color: #155724;
}

.status-closed {
    background-color: #e2e3e5;
    color: #6c757d;
}

/* ========== HOME PAGE ========== */
.hero-container {
    max-width: 700px;
    margin: 60px auto;
    text-align: center;
    background: white;
    padding: 60px 40px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.hero-icon {
    font-size: 64px;
    margin-bottom: 24px;
    line-height: 1;
}

.hero-container h1 {
    color: #222;
    margin-bottom: 16px;
    font-size: 32px;
    font-weight: 600;
}

.hero-container p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 12px;
    font-size: 16px;
}

.cta-buttons {
    margin-top: 32px;
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    padding: 14px 32px;
    font-size: 16px;
}

/* ========== CONFIRMATION PAGE ========== */
.summary-section {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e9ecef;
}

.summary-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.summary-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #222;
    margin-bottom: 16px;
}

.summary-section p {
    margin: 8px 0;
    line-height: 1.6;
}

.summary-section strong {
    color: #555;
    font-weight: 600;
}

.checkbox-confirm {
    margin: 24px 0;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 6px;
}

.checkbox-confirm label {
    display: flex;
    align-items: start;
    gap: 10px;
    cursor: pointer;
    font-weight: normal;
    margin: 0;
}

.checkbox-confirm input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* ========== SERVICE TYPE CARDS ========== */
.service-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 24px 0;
}

.service-card {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
}

.service-card:hover {
    border-color: #007bff;
    box-shadow: 0 4px 12px rgba(0,123,255,0.15);
    transform: translateY(-2px);
}

.service-card.selected {
    border-color: #007bff;
    background-color: #f0f8ff;
}

.service-card input[type="radio"] {
    display: none;
}

.service-icon {
    font-size: 48px;
    margin-bottom: 12px;
    line-height: 1;
}

.service-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #222;
}

.service-description {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
        padding: 12px 16px;
    }
    
    .brand-logo {
        height: 32px;
    }
    
    .logout-text {
        display: none;
    }
    
    .breadcrumb-container {
        padding: 12px 16px;
    }
    
    .breadcrumb {
        font-size: 13px;
    }
    
    .breadcrumb-icon {
        width: 18px;
        height: 18px;
        font-size: 10px;
    }
    
    .main-content-container {
        padding: 20px 16px;
    }
    
    .form-container {
        padding: 24px 20px;
    }
    
    .hero-container {
        padding: 40px 24px;
        margin: 30px 16px;
    }
    
    .service-options {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-button {
        width: 100%;
    }
    
    /* Tabel wordt card layout op mobiel */
    .requests-table {
        display: block;
        border-radius: 0;
        box-shadow: none;
    }
    
    .requests-table thead {
        display: none;
    }
    
    .requests-table tbody {
        display: block;
    }
    
    .requests-table tr {
        display: block;
        margin-bottom: 16px;
        background: white;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.08);
        overflow: hidden;
    }
    
    .requests-table tr:hover {
        background: white;
    }
    
    .requests-table td {
        display: block;
        padding: 12px 16px;
        border: none;
        border-bottom: 1px solid #f0f0f0;
        text-align: left;
    }
    
    .requests-table td:last-child {
        border-bottom: none;
        padding: 12px 16px 16px 16px;
    }
    
    .requests-table td:before {
        content: attr(data-label);
        display: inline-block;
        font-weight: 600;
        color: #666;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-right: 8px;
        min-width: 100px;
    }
    
    .requests-table td:first-child:before {
        content: "#";
    }
    
    /* View button full width op mobiel */
    .requests-table td:last-child a.button {
        display: block;
        width: 100%;
        text-align: center;
        padding: 10px !important;
        font-size: 15px !important;
    }
}

@media (max-width: 480px) {
    .header-right {
        gap: 12px;
    }
    
    .lang-link {
        padding: 5px 10px;
        font-size: 12px;
    }
}

/* ========== UTILITY CLASSES ========== */
hr {
    border: none;
    border-top: 1px solid #e9ecef;
    margin: 24px 0;
}

.text-center {
    text-align: center;
}

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

/* ============================================
   CALENDAR STYLES (step6_delivery.php)
   ============================================ */

/* Calendar styles */
#calendar {
    margin: 20px 0;
}

#calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

#calendar-header button {
    width: auto;
    padding: 8px 15px;
}

#calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 5px;
}

#calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.calendar-day.available {
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.calendar-day.available:hover {
    background-color: #b8dabd;
    transform: scale(1.05);
}

.calendar-day.unavailable {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    cursor: not-allowed;
}

.calendar-day.disabled {
    background-color: #f8f9fa;
    color: #999;
    cursor: not-allowed;
}

.calendar-day.selected {
    background-color: #007bff;
    color: white;
    border-color: #0056b3;
}

/* Overlay for time selection */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.overlay-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
}

.overlay-close {
    margin-top: 15px;
}

#time-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin: 20px 0;
}

.time-slot {
    padding: 10px;
    text-align: center;
    border: 2px solid #007bff;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.time-slot:hover {
    background-color: #007bff;
    color: white;
}

/* Delivery options - Compact en clean */
.delivery-option {
    margin-bottom: 8px;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
    background: white;
}

.delivery-option:hover {
    border-color: #007bff;
    background: #f8fbff;
}

.delivery-option label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 400;
    margin: 0;
}

.delivery-option input[type="radio"] {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
}

.delivery-option input[type="radio"]:checked + label,
.delivery-option:has(input[type="radio"]:checked) {
    border-color: #007bff;
    background: #f0f8ff;
}

.info-container {
    margin: 20px 0;
    padding: 0;
    background: transparent;
    border: none;
    color: #555;
    line-height: 1.7;
}

.info-container p {
    margin: 0 0 10px 0;
}

.info-container br {
    display: block;
    content: "";
    margin-top: 8px;
}
