/* =========================
   GLOBAL RESET
========================= */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Arial, sans-serif;
    background: #f3f4f6;
}

/* =========================
   APP LAYOUT
========================= */

/* LET OP: we laten body scroll toe (belangrijk fix) */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow: hidden;
}

/* HEADER / FOOTER FIXED */
.header,
.footer {
    flex-shrink: 0;
}


.header {
    background: #111827;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer {
    background: #111827;
    color: white;
    padding: 10px 20px;
    text-align: center;
}

/* =========================
   MAIN CONTAINER
========================= */

.container {
    display: flex;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    width: 100%;
}

/* =========================
   SIDEBAR
========================= */

.sidebar {
    width: 300px;
    flex-shrink: 0;
    background: #1f2937;
    color: white;
    padding: 10px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* =========================
   CONTENT AREA
========================= */

.content {
    flex: 1;
    min-width: 0;
    min-height: 0;
    padding: 20px;
    background: #f3f4f6;
    overflow-y: auto;
    overflow-x: hidden;
}

/* =========================
   BUTTONS
========================= */

.btn {
    display: inline-block;
    padding: 10px 15px;
    background: #374151;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid #4b5563;
    cursor: pointer;
    font-weight: bold;
}

.btn:hover {
    background: #4b5563;
}

/* =========================
   CARDS (GENERIC)
========================= */

.asset-card {
    background: #ffffff;
    padding: 20px;
    margin-bottom: 10px;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    width: 100%;
    overflow-x: auto;
}

/* =========================
   FORMS
========================= */

form {
    max-width: 100%;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #111827;
}

.form-group input:not([type="checkbox"]),
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

/* =========================
   TABLES
========================= */

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

th,
td {
    padding: 8px;
    white-space: nowrap;
}

thead {
    border-bottom: 2px solid #d1d5db;
}

tbody tr:not(:last-child) {
    border-bottom: 1px solid #e5e7eb;
}

/* =========================
   MENU
========================= */

.menu {
    padding: 10px;
}

.menu-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #fff;
}

/* =========================
   COUNTRY / PARK TOGGLES
========================= */

.country-toggle,
.park-toggle {
    padding: 10px;
    margin-top: 8px;
    cursor: pointer;
    border-radius: 4px;
}

.country-toggle {
    background: #374151;
    font-weight: bold;
}

.park-toggle {
    background: #4b5563;
    margin-left: 10px;
}

/* =========================
   DROPDOWNS
========================= */

.country-content,
.park-content {
    display: none;
    margin-left: 15px;
    padding-left: 10px;
    border-left: 1px solid #6b7280;
}

/* =========================
   LINKS
========================= */

.park-link {
    text-decoration: none;
    display: block;
}

.park-item {
    padding: 8px;
    margin: 5px 0;
    background: #4b5563;
    border-radius: 4px;
    color: white;
}

.park-item:hover {
    background: #6b7280;
}

/* =========================
   PERMISSIONS
========================= */

.perm-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0;
}

.perm-item input {
    width: auto;
}

/* =========================
   TECHNICIAN CARD
========================= */

.technician-card {
    margin-top: 15px;
    padding: 15px;
    background: #f9fafb;
    border: 1px solid #d1d5db;
    border-radius: 6px;
}

/* =========================================================
   CIO DASHBOARD (NEW MODERN LAYOUT)
========================================================= */

.muted {
    color: #6b7280;
}

/* GRID */
.cio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

/* CARD */
.cio-card {
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    padding: 15px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* STATUS COLORS */
.cio-card.is-in {
    border-left: 5px solid #f59e0b;
}

.cio-card.is-out {
    border-left: 5px solid #10b981;
}

/* HEADER */
.cio-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.asset {
    font-size: 16px;
    font-weight: bold;
    color: #111827;
}

.sub {
    font-size: 12px;
    color: #6b7280;
}

/* STATUS */
.cio-status {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cio-status img {
    width: 28px;
    height: 28px;
}

.badge {
    font-size: 12px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 999px;
    color: white;
}

.badge.in {
    background: #f59e0b;
}

.badge.out {
    background: #10b981;
}

/* BODY */
.cio-body .row {
    margin: 4px 0;
    font-size: 14px;
}

/* DETAILS */
.cio-details {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e5e7eb;
    font-size: 13px;
    color: #374151;
}

.cio-details div {
    margin-bottom: 4px;
}

.cio-details .comment {
    color: #6b7280;
    font-size: 12px;
}

/* =========================================================
   CIO MENU BUTTONS ONLY
========================================================= */

.cio-menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 350px;
    margin-top: 20px;
}

.cio-menu-buttons .btn {
    width: 100%;
    text-align: center;
}

/* =========================================================
   DASHBOARD COMPONENTS
   Used by all Report2Elicio applications
========================================================= */


/* GENERIC GRID */

.dashboard-grid {

    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:20px;
    margin-top:20px;

}


/* DASHBOARD CARD */

.dashboard-card {

    background:white;
    padding:20px;
    border-radius:6px;
    box-shadow:0 1px 2px rgba(0,0,0,0.05);

}


/* BIG NUMBER */

.kpi-number {

    font-size:40px;
    font-weight:bold;
    margin:15px 0;

}


/* STATUS */

.status-ok {

    color:#10b981;
    font-weight:bold;

}


.status-warning {

    color:#f59e0b;
    font-weight:bold;

}


.status-error {

    color:#ef4444;
    font-weight:bold;

}


/* CENTER CONTENT */

.text-center {

    text-align:center;

}


/* ICON / FLAG */

.icon-large {

    font-size:50px;
    margin-bottom:10px;

}