/* =====================================================
   BASIS
===================================================== */

body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f4f6f8;
    color: #1f2a30;
}

.container {
    padding: 20px;
}

h1 {
    margin: 10px 0 15px 0;
    font-size: 20px;
    font-weight: 600;
}

/* =====================================================
   TOPBAR
===================================================== */

.topbar {
    background: #002B5C;
    color: white;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 18px;
    font-weight: 600;
}

.logout a {
    color: white;
    text-decoration: none;
    background: #E30613;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
}

/* =====================================================
   TABEL
===================================================== */

.week-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.week-table th {
    background: #002B5C;
    color: white;
    padding: 8px;
    text-align: left;
    font-size: 13px;
}

.week-table td {
    padding: 6px 8px;
    border-bottom: 1px solid #e5e5e5;
    vertical-align: top;
    font-size: 13px;
}

/* Naam kolom */
.name-col {
    min-width: 140px;
    font-weight: 500;
}

/* =====================================================
   DAG CELLEN (COMPACT TABLET)
===================================================== */

.day-cell {
    min-width: 130px;
    padding: 6px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: background 0.2s ease;
}

/* Status kleuren */
.present { background: #2ecc71; }
.sick    { background: #e74c3c; }
.half    { background: #f1c40f; }
.other   { background: #ff9ecb; }

/* =====================================================
   STATUS BOLLETJES (TOUCH FRIENDLY)
===================================================== */

.status-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0.6;
    border: 1px solid white;
    transition: all 0.15s ease;
}

.dot.active {
    opacity: 1;
    transform: scale(1.15);
}

/* Bol kleur */
.dot.present { background: #2ecc71; }
.dot.sick    { background: #e74c3c; }
.dot.half    { background: #f1c40f; }
.dot.other   { background: #ff9ecb; }

/* =====================================================
   OPMERKING VELD
===================================================== */

.day-note {
    min-height: 45px;
    padding: 6px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    resize: vertical;
}

/* =====================================================
   LEGENDA
===================================================== */

.legend {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 13px;
}

.legend-dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    margin-right: 6px;
}
.legend-dot.red { background:#e74c3c; }
.legend-dot.orange { background:#f39c12; }
.legend-dot.lightgreen { background:#9acd32; }
.legend-dot.green { background:#2ecc71; }
/* =====================================================
   FORM ELEMENTEN
===================================================== */

input,
select,
textarea {
    font-family: inherit;
}

button {
    background: #E30613;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
}

/* =====================================================
   LOGIN
===================================================== */

.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: #002B5C;
}

.login-box {
    background: white;
    padding: 30px;
    width: 300px;
    border-radius: 6px;
}

.login-box input {
    width: 100%;
    padding: 8px;
    margin-bottom: 12px;
}

.error {
    color: red;
}

/* =====================================================
   USERS PAGINA
===================================================== */

.card {
    background: white;
    padding: 20px;
    border-radius: 6px;
}

.user-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px,1fr));
    gap: 10px;
}
/* =====================================================
   TAB MENU (rechtsboven)
===================================================== */

.menu {
    display: flex;
    gap: 8px;
    align-items: center;
}

.menu a {
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 6px 6px 0 0;
    background: rgba(255,255,255,0.15);
    color: white;
    font-size: 13px;
    transition: all 0.15s ease;
}

.menu a:hover {
    background: rgba(255,255,255,0.3);
}

.menu a.active {
    background: white;
    color: #002B5C;
    font-weight: 600;
}
.card h3 {
    margin-top: 20px;
    margin-bottom: 10px;
}

.card label {
    display: block;
    font-size: 13px;
    margin-top: 10px;
}

.card textarea {
    width: 100%;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ddd;
    resize: vertical;
}
/* =====================================================
   STORINGSDIENST KAART
===================================================== */

.service-display {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    background: #f0f4f8;
    border-left: 4px solid #002B5C;
    border-radius: 6px;
}

.service-item strong {
    font-weight: 600;
}

.service-display button {
    align-self: flex-start;
    margin-top: 10px;
}
/* =====================================================
   STORINGSDIENST BOVENAAN (COMPACT & KRACHTIG)
===================================================== */

.service-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.service-badge {
    background: #002B5C;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    min-width: 180px;
}

.service-badge .label {
    display: block;
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 4px;
}

.service-badge .value {
    font-size: 18px;
    font-weight: 600;
}

.edit-service-btn {
    background: #E30613;
    color: white;
    padding: 10px 16px;
    border-radius: 6px;
}
/* ==========================================
   VGM PAGINA
========================================== */

.vgm-image-wrapper {
    text-align: center;
}

/* ==========================================
   VGM TABLET PROOF
========================================== */

.vgm-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.vgm-image {
    max-width: 100%;
    max-height: 75vh; /* Past altijd binnen tablet scherm */
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.vgm-empty {
    width: 100%;
    max-width: 600px;
    padding: 60px;
    text-align: center;
    font-size: 16px;
    color: #666;
    background: #f4f6f8;
    border-radius: 10px;
}

.vgm-upload {
    margin-top: 10px;
}
/* ==========================================
   MOOD BOARD
========================================== */

.mood-cell {
    min-width: 160px;
    padding: 10px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
}

/* Mood kleuren */
.mood-cell.red { background:#e74c3c; }
.mood-cell.orange { background:#f39c12; }
.mood-cell.lightgreen { background:#9acd32; }
.mood-cell.green { background:#2ecc71; }

/* Bolletjes */
.mood-cell .dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    opacity: 0.6;
    cursor: pointer;
    border: 2px solid white;
}

.mood-cell .dot.active {
    opacity: 1;
    transform: scale(1.15);
}
/* ==========================================
   MOOD BOLLETJES KLEUREN
========================================== */

.mood-cell .dot.red {
    background: #e74c3c;
}

.mood-cell .dot.orange {
    background: #f39c12;
}

.mood-cell .dot.lightgreen {
    background: #9acd32;
}

.mood-cell .dot.green {
    background: #2ecc71;
}
/* ==========================================
   TEAM GEMIDDELDE WEERGAVE
========================================== */

.team-average {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.avg-box {
    padding: 14px 20px;
    border-radius: 8px;
    min-width: 220px;
    color: white;
    font-weight: 600;
    font-size: 15px;
}

/* Kleur overname */
.avg-box.red { background:#e74c3c; }
.avg-box.orange { background:#f39c12; }
.avg-box.lightgreen { background:#9acd32; }
.avg-box.green { background:#2ecc71; }
/* ==========================================
   PAGINA HEADER MET REFRESH
========================================== */

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.refresh-btn {
    background: #002B5C;
    color: white;
    padding: 6px 14px;
    border-radius: 6px;
    border: none;
    font-size: 13px;
    cursor: pointer;
}

.refresh-btn:hover {
    opacity: 0.9;
}
/* ==========================================
   DUMMY PAGINA STYLING
========================================== */

.dummy-page {
    padding: 40px;
    text-align: center;
    font-size: 15px;
    color: #555;
}
/* ==========================================
   USERS PAGINA - COMPACT
========================================== */

.users-card {
    padding: 0;
}

.users-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.users-table thead {
    background: #002B5C;
    color: white;
}

.users-table th {
    padding: 8px 10px;
    font-size: 12px;
    text-align: left;
}

.users-table td {
    padding: 6px 8px;
    border-bottom: 1px solid #f0f0f0;
}

.users-table tr:hover {
    background: #f7f9fb;
}

/* Inputs compacter */
.users-table input,
.users-table select {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 13px;
    padding: 4px 6px;
    border-radius: 4px;
}

.users-table input:focus,
.users-table select:focus {
    outline: 2px solid #002B5C;
    background: #eef4fa;
}

/* Regio iets sterker */
.region-input {
    font-weight: 600;
    color: #002B5C;
}

/* Rol select compacter */
.role-select {
    font-size: 12px;
}

/* Save feedback subtiel */
.users-table tr.saved {
    background: #e8f5e9;
    transition: background 0.3s ease;
}
/* ==========================================
   ADD USER RIJ
========================================== */

.add-user-row {
    display: grid;
    grid-template-columns: 100px 1fr 1fr 120px 1fr 120px;
    gap: 6px;
    padding: 10px;
    border-bottom: 1px solid #eee;
    background: #f7f9fb;
}

.add-user-row input,
.add-user-row select {
    padding: 4px 6px;
    font-size: 13px;
}

.add-btn {
    background: #E30613;
    color: white;
    border: none;
    font-size: 13px;
    border-radius: 4px;
    cursor: pointer;
}
/* ==========================================
   PROJECTEN
========================================== */

.projects-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.projects-table th {
    background: #002B5C;
    color: white;
    padding: 8px;
    text-align: left;
}

.projects-table td {
    padding: 6px;
    border-bottom: 1px solid #eee;
}

.projects-table input {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 13px;
    padding: 4px;
}

.projects-table input:focus {
    outline: 2px solid #002B5C;
    background: #eef4fa;
}

.add-project-row {
    display: grid;
    grid-template-columns: 1fr 150px 150px 120px;
    gap: 6px;
    padding: 10px;
    border-bottom: 1px solid #eee;
    background: #f7f9fb;
}
/* ==========================================
   SUCCESSEN
========================================== */

.success-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.success-table th {
    background: #002B5C;
    color: white;
    padding: 8px;
    text-align: left;
}

.success-table td {
    padding: 6px;
    border-bottom: 1px solid #eee;
}

.success-table input {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 13px;
    padding: 4px;
}

.success-table input:focus {
    outline: 2px solid #002B5C;
    background: #eef4fa;
}

.add-success-row {
    display: grid;
    grid-template-columns: 1fr 120px;
    gap: 6px;
    padding: 10px;
    border-bottom: 1px solid #eee;
    background: #f7f9fb;
}
/* ==========================================
   POM
========================================== */

.pom-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.pom-table th {
    background: #002B5C;
    color: white;
    padding: 8px;
    text-align: left;
}

.pom-table td {
    padding: 6px;
    border-bottom: 1px solid #eee;
}

.pom-table input {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 13px;
    padding: 4px;
}

.pom-table input:focus {
    outline: 2px solid #002B5C;
    background: #eef4fa;
}

.add-pom-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 130px 140px 120px;
    gap: 6px;
    padding: 10px;
    border-bottom: 1px solid #eee;
    background: #f7f9fb;
}
/* ==========================================
   POM STATUS
========================================== */

.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: white;
}

.status-badge.green {
    background: #2ecc71;
}

.status-badge.red {
    background: #e74c3c;
}

.resolve-btn {
    margin-left: 8px;
    background: #002B5C;
    color: white;
    border: none;
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
}

.escalate-row {
    background: #ffeaea;
}
/* ==========================================
   POM TOEVOEG FORM
========================================== */

.add-pom-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.add-pom-form textarea {
    width: 100%;
    min-height: 60px;
    resize: vertical;
    padding: 8px;
    font-size: 13px;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-family: inherit;
}

.add-pom-form textarea:focus {
    outline: 2px solid #002B5C;
    border-color: #002B5C;
}

.pom-form-row {
    display: grid;
    grid-template-columns: 160px 1fr 140px;
    gap: 8px;
    align-items: center;
}

.pom-form-row input {
    padding: 6px;
    font-size: 13px;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.pom-form-row input:focus {
    outline: 2px solid #002B5C;
}
/* ==========================================
   TIPS & TRICKS
========================================== */

.add-tip-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.add-tip-form textarea {
    min-height: 60px;
    padding: 8px;
    font-size: 13px;
    border-radius: 6px;
    border: 1px solid #ddd;
    resize: vertical;
}

.tip-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr 140px;
    gap: 8px;
    align-items: center;
}

.tips-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.tips-table th {
    background: #002B5C;
    color: white;
    padding: 8px;
    text-align: left;
}

.tips-table td {
    padding: 6px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

.tips-table textarea {
    width: 100%;
    min-height: 50px;
    border: none;
    background: transparent;
    font-size: 13px;
    resize: vertical;
}

.tips-table textarea:focus,
.tips-table input:focus {
    outline: 2px solid #002B5C;
    background: #eef4fa;
}

.tip-photo {
    max-width: 100px;
    max-height: 70px;
    border-radius: 6px;
}