/* CleanMasterZZ WOF Portal – Custom Styles */

:root {
    --cmz-blue:   #1a56db;
    --cmz-blue-l: #e8f0fe;
    --cmz-green:  #0e9f6e;
    --cmz-orange: #ff5a1f;
}

/* Layout */
body {
    background: #f0f4f8;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
}

/* Dashboard cards */
.stat-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    transition: transform .15s, box-shadow .15s;
}
.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,.13);
}
.stat-card .icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

/* WOF Form sections */
.wof-section {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,.07);
    margin-bottom: 1.25rem;
    overflow: hidden;
}

.wof-section-header {
    background: var(--cmz-blue);
    color: #fff;
    padding: .65rem 1rem;
    font-weight: 600;
    font-size: .95rem;
    display: flex;
    align-items: center;
    gap: .5rem;
    cursor: pointer;
    user-select: none;
}

.wof-section-header .toggle-icon {
    margin-left: auto;
    transition: transform .2s;
}
.wof-section-header.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

.wof-section-body {
    padding: 1rem;
}

/* Radio Ja/Nee styling */
.radio-jn .btn-check + label {
    padding: .3rem .8rem;
    font-size: .875rem;
}
.radio-jn .btn-check:checked + label.btn-outline-success {
    background: var(--cmz-green);
    border-color: var(--cmz-green);
    color: #fff;
}
.radio-jn .btn-check:checked + label.btn-outline-danger {
    background: #e02424;
    border-color: #e02424;
    color: #fff;
}

/* Form field rows */
.form-field-row {
    padding: .5rem 0;
    border-bottom: 1px solid #f0f0f0;
}
.form-field-row:last-child {
    border-bottom: none;
}
.form-field-label {
    font-weight: 500;
    color: #374151;
    font-size: .9rem;
    margin-bottom: .3rem;
}

/* Login page */
.login-card {
    max-width: 420px;
    margin: 0 auto;
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,.12);
}
.login-header {
    background: var(--cmz-blue);
    color: #fff;
    border-radius: 16px 16px 0 0;
    padding: 2rem;
    text-align: center;
}

/* Print page */
@media print {
    .no-print, nav, footer, .btn, .alert { display: none !important; }
    body { background: #fff; font-size: 11pt; }
    .wof-section { box-shadow: none; border: 1px solid #ddd; page-break-inside: avoid; }
    .wof-section-header { background: #1a56db !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .print-only { display: block !important; }
}
.print-only { display: none; }

/* View page field display */
.field-display {
    background: #f8fafc;
    border-left: 3px solid var(--cmz-blue);
    padding: .4rem .75rem;
    border-radius: 0 4px 4px 0;
    font-size: .9rem;
}
.field-display.empty { color: #9ca3af; font-style: italic; }

/* Mobile optimizations */
@media (max-width: 576px) {
    .wof-section-body { padding: .75rem .6rem; }
    .form-field-label { font-size: .85rem; }
    .navbar-brand { font-size: 1rem; }
    h2.page-title { font-size: 1.2rem; }
}

/* Badge status */
.badge-draft    { background: #9ca3af; }
.badge-submitted { background: var(--cmz-green); }

/* Table hover */
.table-hover tbody tr:hover { background: var(--cmz-blue-l); }

/* Settings sections */
.settings-nav .list-group-item.active {
    background: var(--cmz-blue);
    border-color: var(--cmz-blue);
}

/* Progress / Step indicator for form */
.form-progress {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: .5rem 1rem;
    display: flex;
    gap: .5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.form-progress-item {
    flex: 0 0 auto;
    font-size: .75rem;
    padding: .25rem .6rem;
    border-radius: 20px;
    background: #f3f4f6;
    color: #6b7280;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
}
.form-progress-item:hover,
.form-progress-item.active {
    background: var(--cmz-blue);
    color: #fff;
    text-decoration: none;
}
