/* Modern CSS - PR Deventer Jeugd Musical */
/* Alle styling voor de gehele website in één bestand */
/* KLEUREN: ROOD & ZWART */

/* ========================================
   KLEUREN DEVENTER JEUGD MUSICAL
   ======================================== */
:root {
    /* Primaire kleuren - ROOD & ZWART */
    --djm-primary-red: #dc143c;      /* Crimson rood */
    --djm-dark-red: #b91c2e;         /* Donker rood */
    --djm-black: #1a1a1a;            /* Zwart */
    --djm-dark-gray: #2d2d2d;        /* Donkergrijs */

    /* Secundaire kleuren */
    --djm-light-red: #ff4757;        /* Licht rood voor hover */
    --djm-medium-gray: #666666;      /* Medium grijs */
    --djm-light-gray: #eeeeee;       /* Licht grijs */

    /* Achtergrond kleuren */
    --djm-white: #ffffff;
    --djm-bg-dark: #1a1a1a;
    --djm-bg-light: #f5f5f5;

    /* Tekst kleuren */
    --djm-text-primary: #333333;
    --djm-text-secondary: #666666;
    --djm-text-light: #ffffff;

    /* Border en UI */
    --djm-border: #e2e2e2;

    /* Status kleuren */
    --djm-success: #28a745;
    --djm-warning: #ffc107;
    --djm-danger: #dc143c;
}

/* ========================================
   1. RESET & BASE STYLING
   ======================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    background-attachment: fixed;
    color: var(--djm-text-primary);
    min-height: 100vh;
}

/* ========================================
   2. NAVIGATIEBALK
   ======================================== */

.navbar {
    background: #ffffff;
    backdrop-filter: blur(10px);
    padding: 12px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border-bottom: 3px solid var(--djm-primary-red);
}

.navbar .logo {
    display: flex;
    align-items: center;
}

.navbar .logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.navbar .logo a:hover {
    opacity: 0.8;
}

.navbar .logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.navbar .nav-links {
    list-style-type: none;
    display: flex;
    gap: 10px;
    align-items: center;
}

.navbar .nav-links li {
    position: relative;
}

.navbar .nav-links li a {
    color: #333;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 10px 18px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: block;
}

.navbar .nav-links li a:hover,
.navbar .nav-links li a.active {
    background: linear-gradient(135deg, #dc143c 0%, #b91c2e 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 20, 60, 0.4);
}

/* Burger menu voor mobiel */
.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--djm-primary-red);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ========================================
   3. CONTENT & LAYOUT
   ======================================== */

.content {
    background: rgba(255, 255, 255, 0.95);
    min-height: calc(100vh - 70px);
    padding: 0;
}

.content h1 {
    font-size: 42px;
    color: #333;
    font-weight: 700;
}

.content p {
    font-size: 18px;
    color: #555;
    margin: 20px 0;
    line-height: 1.8;
}

/* ========================================
   4. ADMIN LAYOUT
   ======================================== */

.admin-container {
    display: flex;
    gap: 20px;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background: rgba(255, 255, 255, 0.98);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    height: fit-content;
    position: sticky;
    top: 90px;
}

.sidebar h2 {
    margin: 0 0 20px 0;
    color: var(--djm-text-heading);
    font-size: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--djm-primary-red);
}

.sidebar ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.sidebar ul li {
    margin: 0;
}

.sidebar ul li a {
    display: block;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-bottom: 5px;
    font-weight: 500;
}

.sidebar ul li a:hover,
.sidebar ul li a.active {
    background: linear-gradient(135deg, #dc143c 0%, #b91c2e 100%);
    color: white;
    transform: translateX(5px);
}

/* Main Content */
.main-content {
    flex: 1;
    background: rgba(255, 255, 255, 0.98);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.main-content h1 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 32px;
}

.main-content h2 {
    color: var(--djm-primary-red);
    margin: 30px 0 15px 0;
    font-size: 24px;
}

/* ========================================
   5. CARDS
   ======================================== */

.card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.card h3 {
    margin: 0 0 15px 0;
    color: var(--djm-primary-red);
    font-size: 20px;
}

/* ========================================
   6. BUTTONS
   ======================================== */

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 15px;
}

.btn-primary {
    background: linear-gradient(135deg, #dc143c 0%, #b91c2e 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 20, 60, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    color: white;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 87, 108, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    color: white;
    opacity: 0.9;
}

.btn-secondary:hover {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 45, 45, 0.4);
}

/* ========================================
   7. FORMS
   ======================================== */

form {
    max-width: 600px;
}

form input,
form select,
form textarea {
    width: 100%;
    padding: 12px 15px;
    margin: 8px 0 20px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

form input:focus,
form select:focus,
form textarea:focus {
    outline: none;
    border-color: var(--djm-primary-red);
    box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.1);
}

form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

form button,
form input[type="submit"] {
    background: linear-gradient(135deg, #dc143c 0%, #b91c2e 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 10px 0;
}

form button:hover,
form input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 20, 60, 0.4);
}

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

/* ========================================
   8. TABLES
   ======================================== */

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

th {
    background: linear-gradient(135deg, #dc143c 0%, #b91c2e 100%);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
}

td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    color: #333;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover {
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.05) 0%, rgba(185, 28, 46, 0.05) 100%);
}

/* ========================================
   9. STATS & BADGES
   ======================================== */

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stat-box {
    background: linear-gradient(135deg, #dc143c 0%, #b91c2e 100%);
    color: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.3);
    transition: transform 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-5px);
}

.stat-box h3 {
    margin: 0 0 10px 0;
    font-size: 14px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-box p {
    margin: 0;
    font-size: 36px;
    font-weight: bold;
    color: white;
}

/* Badges */
.badge {
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.badge-success {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    color: white;
}

.badge-danger {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.badge-warning {
    background: linear-gradient(135deg, #f093fb 0%, #ffc107 100%);
    color: white;
}

.badge-info {
    background: linear-gradient(135deg, #dc143c 0%, #b91c2e 100%);
    color: white;
}

/* ========================================
   10. ALERTS & MESSAGES
   ======================================== */

.alert,
.message {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    border-left: 4px solid;
}

.alert-success,
.message-success {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(33, 136, 56, 0.1) 100%);
    color: #155724;
    border-color: #28a745;
}

.alert-error,
.alert-danger,
.message-error {
    background: linear-gradient(135deg, rgba(240, 147, 251, 0.1) 0%, rgba(245, 87, 108, 0.1) 100%);
    color: #721c24;
    border-color: #f5576c;
}

.alert-warning,
.message-warning {
    background: linear-gradient(135deg, rgba(240, 147, 251, 0.1) 0%, rgba(255, 193, 7, 0.1) 100%);
    color: #856404;
    border-color: #ffc107;
}

.alert-info,
.message-info {
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.1) 0%, rgba(185, 28, 46, 0.1) 100%);
    color: #721c24;
    border-color: #dc143c;
}

/* ========================================
   11. UTILITY COMPONENTS
   ======================================== */

/* Notification badge */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
}

/* Loading spinner */
.spinner {
    border: 3px solid rgba(220, 20, 60, 0.1);
    border-top: 3px solid var(--djm-primary-red);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Toast notificaties */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    min-width: 300px;
    z-index: 10000;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.success { border-left: 4px solid #28a745; }
.toast.error { border-left: 4px solid #dc143c; }
.toast.warning { border-left: 4px solid #ffc107; }
.toast.info { border-left: 4px solid #dc143c; }

/* ========================================
   12. ACCESSIBILITY
   ======================================== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 3px solid var(--djm-primary-red);
    outline-offset: 2px;
}

/* ========================================
   13. RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    /* Navbar mobiel */
    .navbar {
        padding: 10px 20px;
    }

    .navbar .logo-img {
        height: 40px;
    }

    .navbar .nav-links {
        flex-direction: column;
        align-items: stretch;
        background: white;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        display: none;
        box-shadow: 0 8px 30px rgba(0,0,0,0.1);
        padding: 20px;
        gap: 5px;
        border-top: 1px solid #eee;
    }

    .navbar .nav-links.active {
        display: flex;
    }

    .navbar .nav-links li {
        width: 100%;
    }

    .navbar .nav-links li a {
        width: 100%;
        text-align: left;
    }

    /* Dropdown menu mobiel */
    .navbar .dropdown-menu {
        position: static;
        box-shadow: none;
        background: #f8f9fa;
        margin: 5px 0;
        border-radius: 4px;
    }

    .navbar .dropdown:hover .dropdown-menu {
        display: none; /* Disable hover op mobiel */
    }

    .navbar .dropdown.active .dropdown-menu {
        display: block;
    }

    .navbar .dropdown-toggle::after {
        content: ' ▾';
    }

    .navbar .dropdown.active .dropdown-toggle::after {
        content: ' ▴';
    }

    .burger {
        display: flex;
    }

    .burger.active div:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .burger.active div:nth-child(2) {
        opacity: 0;
    }

    .burger.active div:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    /* Admin layout mobiel */
    .admin-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        position: relative;
        top: 0;
    }

    /* Stats mobiel */
    .stats {
        grid-template-columns: 1fr;
    }

    /* Tables mobiel */
    table {
        font-size: 14px;
    }

    th, td {
        padding: 10px;
    }
}

/* ========================================
   14. KAARTEN PAGINA SPECIFIEKE STYLING
   ======================================== */

.kaarten-container {
    display: flex;
    gap: 20px;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.kaarten-menu {
    width: 250px;
    background: rgba(255, 255, 255, 0.98);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    height: fit-content;
    position: sticky;
    top: 90px;
}

.kaarten-menu h3 {
    margin: 20px 0 15px 0;
    color: var(--djm-text-heading);
    font-size: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--djm-primary-red);
}

.kaarten-menu h3:first-child {
    margin-top: 0;
}

.kaarten-menu ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.kaarten-menu ul li {
    margin: 0;
}

.kaarten-menu ul li a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-bottom: 5px;
    font-weight: 500;
}

.kaarten-menu ul li a:hover,
.kaarten-menu ul li a.active {
    background: linear-gradient(135deg, #dc143c 0%, #b91c2e 100%);
    color: white;
    transform: translateX(5px);
}

.kaarten-content {
    flex: 1;
    background: rgba(255, 255, 255, 0.98);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.kaarten-content h1 {
    margin: 0 0 30px 0;
    color: #333;
    font-size: 32px;
}

.kaarten-content h2 {
    color: var(--djm-primary-red);
    margin: 20px 0 15px 0;
    font-size: 24px;
}

.chart-container {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.chart-container:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.12);
}

.gauge-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin: 30px 0;
}

.gauge {
    text-align: center;
    margin: 20px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.gauge-label {
    margin-top: 15px;
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

#comparison {
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.1) 0%, rgba(185, 28, 46, 0.1) 100%);
    padding: 25px;
    border-radius: 12px;
    margin-top: 30px;
}

#comparison h2 {
    margin-top: 0;
}

#comparison p {
    margin: 12px 0;
    line-height: 1.8;
    color: #333;
}

@media (max-width: 768px) {
    .kaarten-container {
        flex-direction: column;
    }

    .kaarten-menu {
        width: 100%;
        position: relative;
        top: 0;
    }

    .gauge-container {
        flex-direction: column;
        align-items: center;
    }
}

/* ========================================
   15. UNIFORME PAGE CONTAINERS
   ======================================== */

/* Standaard page container voor content pagina's */
.page-container {
    max-width: 1200px;
    margin: 50px auto;
    padding: 40px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.page-container h1 {
    margin: 0 0 30px 0;
    color: #333;
    font-size: 36px;
}

.page-container h2 {
    color: var(--djm-primary-red);
    margin: 30px 0 20px 0;
    font-size: 28px;
}

.page-container h3 {
    color: #333;
    margin: 25px 0 15px 0;
    font-size: 22px;
}

.page-container p {
    font-size: 16px;
    color: #555;
    margin: 15px 0;
    line-height: 1.8;
}

/* Centered container voor login/register/forms */
.centered-container {
    max-width: 500px;
    margin: 100px auto;
    padding: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.centered-container h1 {
    text-align: center;
    color: #333;
    margin-bottom: 10px;
    font-size: 32px;
}

.centered-container > p:first-of-type {
    text-align: center;
    color: #555;
    margin-bottom: 30px;
    font-size: 16px;
}

/* Grid layout voor feature cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.feature-box {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.12);
}

.feature-box h2,
.feature-box h3 {
    color: var(--djm-primary-red);
    margin-top: 0;
}

.feature-box a {
    color: var(--djm-primary-red);
    text-decoration: none;
    font-weight: 600;
}

.feature-box a:hover {
    text-decoration: underline;
}
