/* =============================
   GLOBAL BASE STYLES
   ============================= */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* ensures full viewport height */
}

:root {
    --navbar-height: 10px;
}

main {
    flex: 1 0 auto;
    padding: 0;
}



footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #f8f9fa;
    color: #666;
    text-align: center;
    padding: 10px 0;
    border-top: 1px solid #ddd;
    z-index: 1000; /* keeps it above page content */
}

/* add padding to prevent content from being hidden behind footer */
main {
    padding-bottom: 60px; /* adjust to footer height */
}


/* =============================
   STICKY NAVIGATION BAR — FIXED VERSION
   ============================= */

/* Keep header simple */
header {
    position: relative;
    z-index: 1030;
}

.navbar {
    position: static;
    width: 100%;
    z-index: 1040;
    background-color: #213d7f !important;
    margin: 0;
    padding: 0;
}

body {
    /* padding-top removed — no longer needed */
}

/* Navbar link styles */
.navbar .nav-link {
    color: #ff9800 !important;
    font-weight: 500;
}

    .navbar .nav-link:hover,
    .navbar .nav-link:focus,
    .navbar .nav-link.active {
        color: #cc5500 !important;
    }

/* Dropdown menu */
.navbar .dropdown-menu {
    background-color: #f7f3e9 !important;
}

    .navbar .dropdown-menu .nav-link {
        color: #213d7f !important;
    }

/* =============================
   2. HEADERS AND TITLES
   ============================= */
h1, h2, h3, h4 {
    color: #003366; /* DEEP BLUE for titles */
    margin-top: 0.5rem;
}

/* To make them stand out easily */
h1 {
    border-bottom: 2px solid #003366;
    padding-bottom: 0.25rem;
}

/* =============================
   3. LABELS & FORM INPUTS
   ============================= */
label {
    color: #005f5f; /* TEAL for labels */
    font-weight: 600;
}

.form-control {
    border: 1px solid #aaa;
    border-radius: 4px;
    padding: 6px;
    background-color: #fff8e1; /* PALE YELLOW inputs */
}

    .form-control:focus {
        border-color: #ff9800; /* orange focus border */
        box-shadow: 0 0 4px #ff9800;
    }

.required-field {
    background-color: #ffebee !important; /* Light red for required fields */
    border: 1px solid #f44336 !important;
}

.required-field-filled {
    background-color: #e8f5e8 !important; /* Light green when filled */
    border: 1px solid #4caf50 !important;
}

/* =============================
   4. TABLES (Index.cshtml)
   ============================= */
.table {
    width: 100%;
    border-collapse: collapse;
}

    

    .table th a.custom-link {
        color: white;
        text-decoration: none;
    }

        .table th a.custom-link:hover {
            color: #ffcc80; /* light orange hover for sortable headers */
    }

    .table th, .table td {
        padding: 4px 8px; /* reduce row height */
        line-height: 1.2; /* tighter vertical spacing */
        border-bottom: 1px solid #ddd;
    }

    .table td {
        color: #212529;
        border-bottom: 1px solid #ddd;
    }

    /* === Sticky Table Header === */
    .table thead th {
        position: sticky;
        top: 80px; /* equal to navbar height! adjust if needed */
        background-color: #213D7F; /* dark blue net als navigatie */
        color: #ffcc80; /* licht orange  */
        z-index: 2; /* ensures it stays above table body */
    }

    .table tfoot th {
        position: sticky;
        top: 80px; /* equal to navbar height! adjust if needed */
        background-color: #213D7F; /* dark blue net als navigatie */
        color: #ffcc80; /* licht orange  */
        z-index: 2; /* ensures it stays above table body */
    }

    .table th a,
    .table th a:visited,
    .table th label {
        color: #ffcc80;
        text-decoration: none;
        font-weight: inherit; /* or 600 if you prefer */
        margin-bottom: 0;
    }


/* =============================
   5. ACTION LINKS (Index table)
   ============================= */
td.action-links a {
    color: #e91e63; /* PINK for action links (Wijzig, Kaart, Verwijder) */
    text-decoration: none;
}

    td.action-links a:hover {
        color: #ad1457;
        text-decoration: underline;
    }

/* =============================
   6. BUTTONS
   ============================= */

/* Primary (Create/Aanmaken) */
.btn-primary {
    background-color: #007bff; /* BLUE */
    border: none;
    color: white;
}

    .btn-primary:hover {
        background-color: #0056b3;
    }

/* Success (Zoek, Alles, Actueel) */
.btn-success {
    background-color: #388e3c; /* GREEN */
    border: none;
    color: white;
}

    .btn-success:hover {
        background-color: #1b5e20;
    }

/* Warning (Nieuw) */
.btn-warning {
    background-color: #ff9800; /* ORANGE */
    border: none;
    color: white;
}

    .btn-warning:hover {
        background-color: #cc5500;
    }

/* button voor previous and next page*/
.btn-previous,
.btn-next {
    background-color: lightgrey;
    border-color: black;
    color: black; /* Change text color if needed for better contrast */
}

    .btn-previous:hover,
    .btn-previous:focus,
    .btn-previous:active,
    .btn-next:hover,
    .btn-next:focus,
    .btn-next:active {
        background-color: darkgray; /*blue for hover state */
        border-color: white;
    }

/* =============================
   7. textarea notitievak
   ============================= */
textarea {
    width: 100%;
    height: 100px;
}
/* =============================
   8. agenda
   ============================= */

/* context menu icons */
.icon:before {
    position: absolute;
    margin-top: 3px;
    width: 14px;
    height: 14px;
    content: '';
}

.icon-blue:before {
    background-color: #1066a8;
}

.icon-green:before {
    background-color: #6aa84f;
}

.icon-yellow:before {
    background-color: #f1c232;
}

.icon-red:before {
    background-color: #cc0000;
}

.navbar-dark .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='%23ff9800' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.event-tooltip {
    position: fixed;
    display: none;
    z-index: 10000;
    background: white;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    padding: 12px 16px;
    min-width: 250px;
    max-width: 350px;
    font-size: 14px;
    color: #333;
}

    .event-tooltip .tooltip-title {
        font-size: 17px;
        font-weight: 600;
        margin-bottom: 8px;
    }

    .event-tooltip .tooltip-row {
        margin-bottom: 4px;
    }
/*Section Color Use
Navbar background #213d7f navy blue
Navbar text #ff9800 orange
Navbar hover #cc5500 dark orange
Header titles #003366 deep blue
Labels #005f5f teal
Inputs background #fff8e1 pale yellow
Sort headers #6a1b9a purple
Action links #e91e63 pink
Buttons blue / green / orange (distinct)	*/