/* Rock Werchter inspired dashboard theme */

:root {
    --rw-black: #040604;
    --rw-ink: #0a0c08;
    --rw-surface: rgba(18, 22, 17, 0.58);
    --rw-surface-strong: #121611;
    --rw-surface-hover: rgba(30, 36, 24, 0.72);
    --bg-image: url('../files/RockWerchterEnhance.png');
    --rw-lime: #d7ff1f;
    --rw-lime-soft: rgba(215, 255, 31, 0.16);
    --rw-cyan: #48e6ff;
    --rw-red: #ff4f40;
    --rw-amber: #ffb13d;
    --rw-green: #63f58e;
    --rw-text: #f3f6e8;
    --rw-muted: #a8ad9c;
    --rw-border: rgba(215, 255, 31, 0.22);
    --rw-border-soft: rgba(255, 255, 255, 0.09);
    --rw-shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
    --rw-shadow-hover: 0 24px 70px rgba(0, 0, 0, 0.48);
    --rw-radius: 8px;

    --primary-color: var(--rw-lime);
    --secondary-color: var(--rw-cyan);
    --background: var(--rw-black);
    --surface: var(--rw-surface);
    --surface-hover: var(--rw-surface-hover);
    --text-primary: var(--rw-text);
    --text-secondary: var(--rw-muted);
    --border-color: var(--rw-border-soft);
    --shadow: var(--rw-shadow);
    --shadow-hover: var(--rw-shadow-hover);
    --glass-bg: var(--rw-surface);
    --glass-border: var(--rw-border);
    --glass-blur: 16px;

    --task-bar: #d7ff1f;
    --task-stage: #ff4f40;
    --task-catering: #63f58e;
    --task-security: #ffb13d;
    --task-parking: #48e6ff;
}

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text-primary);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.55;
    background-color: var(--rw-black);
    /* top layer: semi-transparent black overlay; second: background image; then decorative gradients/patterns */
    background-image:
        linear-gradient(rgba(0,0,0,0.50), rgba(0,0,0,0.50)),
        var(--bg-image),
        linear-gradient(rgba(215, 255, 31, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(215, 255, 31, 0.03) 1px, transparent 1px),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 5px),
        linear-gradient(135deg, #050704 0%, #101508 50%, #070807 100%);
    background-size: cover, cover, 38px 38px, 38px 38px, 100% 6px, 100% 100%;
    background-position: center center, center center, 0 0, 0 0, 0 0, 0 0;
    background-repeat: no-repeat, no-repeat, repeat, repeat, repeat, no-repeat;
    background-attachment: fixed, fixed, scroll, scroll, scroll, scroll;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(215, 255, 31, 0.10), transparent 28%, transparent 72%, rgba(72, 230, 255, 0.08)),
        linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.36));
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background-image: repeating-linear-gradient(120deg, transparent 0 18px, rgba(215, 255, 31, 0.025) 18px 19px);
    opacity: 0.65;
}

a {
    color: var(--rw-lime);
    text-decoration: none;
}

a:hover {
    color: #efffb0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0 0 1rem;
    color: var(--rw-text);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: 0;
}

h1 {
    font-size: clamp(2rem, 4vw, 3.4rem);
}

h2 {
    font-size: clamp(1.4rem, 2.4vw, 2rem);
}

h3 {
    font-size: 1.25rem;
}

h4 {
    font-size: 1.05rem;
}

p {
    margin: 0 0 1rem;
    color: var(--text-secondary);
}

::selection {
    color: #030403;
    background: var(--rw-lime);
}

.glass,
.card,
.list-item,
.table-container,
.calendar-view-toggle,
.hamburger,
.modal,
.toast {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
}

.glass-hover,
.card,
.list-item,
.btn,
.sidebar-nav-link,
input,
textarea,
select {
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.glass-hover:hover,
.card:hover,
.list-item:hover {
    border-color: rgba(215, 255, 31, 0.48);
    background: var(--surface-hover);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.btn {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(215, 255, 31, 0.5);
    border-radius: 6px;
    color: #050604;
    background: var(--rw-lime);
    font: inherit;
    font-weight: 900;
    line-height: 1.1;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 0 0 1px rgba(215, 255, 31, 0.10), 0 10px 24px rgba(215, 255, 31, 0.12);
}

.btn:hover {
    color: #020302;
    background: #edff77;
    border-color: #edff77;
    transform: translateY(-1px);
    box-shadow: 0 0 0 1px rgba(215, 255, 31, 0.26), 0 16px 34px rgba(215, 255, 31, 0.16);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled,
.btn.loading {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-primary {
    background: var(--rw-lime);
    color: #040604;
}

.btn-secondary {
    background: transparent;
    color: var(--rw-cyan);
    border-color: rgba(72, 230, 255, 0.55);
}

.btn-secondary:hover {
    background: rgba(72, 230, 255, 0.16);
    color: #eaffff;
}

.btn-danger {
    background: rgba(255, 79, 64, 0.14);
    border-color: rgba(255, 79, 64, 0.55);
    color: #ffd4d0;
}

.btn-danger:hover {
    background: var(--rw-red);
    color: #090403;
}

.btn-success {
    background: rgba(99, 245, 142, 0.15);
    border-color: rgba(99, 245, 142, 0.55);
    color: #c8ffda;
}

.btn-success:hover {
    background: var(--rw-green);
    color: #031006;
}

.btn-outline {
    background: transparent;
    color: var(--rw-lime);
    border-color: rgba(215, 255, 31, 0.48);
}

.btn-outline:hover,
.btn.active,
.calendar-view-toggle button.active {
    background: var(--rw-lime);
    color: #040604;
    border-color: var(--rw-lime);
}

.btn-block {
    width: 100%;
}

.btn-small {
    min-height: 36px;
    padding: 0.55rem 0.8rem;
    font-size: 0.875rem;
}

.btn-icon {
    width: 44px;
    padding: 0;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.42rem;
    color: var(--rw-text);
    font-size: 0.92rem;
    font-weight: 800;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="time"],
input[type="number"],
input[type="tel"],
input[type="search"],
input[type="url"],
textarea,
select {
    width: 100%;
    min-height: 46px;
    padding: 0.8rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 6px;
    color: var(--rw-text);
    background: rgba(0, 0, 0, 0.38);
    font: inherit;
    outline: none;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

input::placeholder,
textarea::placeholder {
    color: rgba(243, 246, 232, 0.42);
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--rw-lime);
    box-shadow: 0 0 0 3px rgba(215, 255, 31, 0.14);
    background: rgba(0, 0, 0, 0.58);
}

/* Voorkom dat browser-autofill een witte achtergrond geeft */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0px 1000px rgba(4, 6, 4, 0.92) inset !important;
    -webkit-text-fill-color: var(--rw-text) !important;
    caret-color: var(--rw-text);
    border-color: rgba(255, 255, 255, 0.14) !important;
}

select {
    color-scheme: dark;
}

input[type="checkbox"],
input[type="radio"] {
    width: 1rem;
    min-height: 1rem;
    accent-color: var(--rw-lime);
    cursor: pointer;
}

.checkbox-group,
.radio-group {
    display: grid;
    gap: 0.65rem;
}

.checkbox-item,
.radio-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.20);
}

.card {
    border-radius: var(--rw-radius);
    padding: 1.25rem;
}

.login-card .card {
    background: rgba(14, 17, 13, 0.86) !important;
    border-color: rgba(215, 255, 31, 0.22) !important;
}

.card-header {
    margin-bottom: 1rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid var(--border-color);
}

.card-title {
    margin-bottom: 0;
}

.table-container {
    overflow-x: auto;
    border-radius: var(--rw-radius);
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
    table-layout: auto;
}

thead {
    background: rgba(215, 255, 31, 0.08);
}

th,
td {
    padding: 0.8rem 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: normal;
    white-space: normal;
    max-width: none;
}

th {
    color: #f7ffd6;
    font-weight: 900;
    user-select: none;
}

th.sortable {
    cursor: pointer;
    user-select: none;
}

th.sortable:hover {
    color: var(--rw-lime);
}


tbody tr:hover {
    background: rgba(215, 255, 31, 0.06);
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.login-container {
    width: min(100%, 430px);
}

/* Hide the rainbow top bar for login cards inside the login container */
.login-container .login-card::after {
    display: none;
}

.login-card {
    position: relative;
    overflow: hidden;
    padding: 2rem;
    border: 1px solid rgba(215, 255, 31, 0.35);
    border-radius: var(--rw-radius);
    background:
        linear-gradient(180deg, rgba(20, 26, 15, 0.94), rgba(7, 9, 6, 0.96)),
        repeating-linear-gradient(90deg, transparent 0 18px, rgba(215, 255, 31, 0.035) 18px 19px);
    box-shadow: var(--shadow-hover);
}

.login-card::before {
    content: "ROCK WERCHTER";
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    margin-bottom: 1rem;
    padding: 0.28rem 0.55rem;
    border: 1px solid rgba(215, 255, 31, 0.52);
    border-radius: 4px;
    color: #020302;
    background: var(--rw-lime);
    font-size: 0.74rem;
    font-weight: 950;
}

.login-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--rw-lime), var(--rw-cyan), var(--rw-red), var(--rw-amber));
    border-top-left-radius: calc(var(--rw-radius));
    border-top-right-radius: calc(var(--rw-radius));
    z-index: 5;
    box-shadow: 0 4px 10px rgba(0,0,0,0.35);
}

.login-title {
    margin-bottom: 0.45rem;
    font-size: clamp(2rem, 5vw, 3rem);
}

.login-subtitle {
    margin-bottom: 1.6rem;
}

.login-form {
    margin-bottom: 1.35rem;
}

.login-info {
    margin-top: 1.35rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    text-align: center;
    font-size: 0.9rem;
}

.login-info p {
    margin-bottom: 0.35rem;
}

.error-message,
.success-message {
    margin-bottom: 1rem;
    padding: 0.85rem 0.95rem;
    border-radius: 6px;
    font-weight: 700;
}

.error-message {
    color: #ffd7d3;
    background: rgba(255, 79, 64, 0.12);
    border: 1px solid rgba(255, 79, 64, 0.42);
}

.success-message {
    color: #d6ffe2;
    background: rgba(99, 245, 142, 0.12);
    border: 1px solid rgba(99, 245, 142, 0.42);
}

.error-message pre {
    color: #ffd7d3;
    background: rgba(0, 0, 0, 0.42) !important;
    border: 1px solid rgba(255, 79, 64, 0.28);
}

.toast {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 10000;
    max-width: min(420px, calc(100vw - 2rem));
    padding: 0.95rem 1.1rem;
    border-radius: var(--rw-radius);
    opacity: 0;
    transform: translateY(18px);
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-success {
    border-color: rgba(99, 245, 142, 0.42);
}

.toast-error {
    border-color: rgba(255, 79, 64, 0.42);
}

.toast-info {
    border-color: rgba(215, 255, 31, 0.42);
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1000;
    width: 280px;
    padding: 1.45rem 0;
    overflow-y: auto;
    border-right: 1px solid rgba(215, 255, 31, 0.24);
    background:
        linear-gradient(180deg, rgba(10, 13, 8, 0.98), rgba(4, 6, 4, 0.98)),
        repeating-linear-gradient(0deg, transparent 0 20px, rgba(215, 255, 31, 0.035) 20px 21px);
    box-shadow: 22px 0 55px rgba(0, 0, 0, 0.38);
}

.sidebar-header {
    position: relative;
    margin-bottom: 0.85rem;
    padding: 0 1.25rem 1.35rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.sidebar-header::before {
    content: "WERCHTER";
    display: inline-flex;
    min-height: 22px;
    align-items: center;
    margin-bottom: 0.8rem;
    padding: 0.2rem 0.48rem;
    border-radius: 4px;
    color: #040604;
    background: var(--rw-lime);
    font-size: 0.72rem;
    font-weight: 950;
}

.sidebar-header h2 {
    margin-bottom: 0.3rem;
}

.sidebar-nav {
    list-style: none;
    margin: 0;
    padding: 0.4rem 0.7rem;
}

.sidebar-nav-item {
    margin: 0.28rem 0;
}

.sidebar-nav-link {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0.72rem 0.85rem;
    border: 1px solid transparent;
    border-radius: 6px;
    color: var(--rw-muted);
    font-weight: 800;
    text-decoration: none;
}

.sidebar-nav-link:hover {
    color: var(--rw-text);
    background: rgba(255, 255, 255, 0.055);
    border-color: rgba(255, 255, 255, 0.08);
}

.sidebar-nav-link.active {
    color: #040604;
    background: var(--rw-lime);
    border-color: var(--rw-lime);
}

.sidebar-nav-link .material-symbols-outlined {
    color: inherit;
}

.main-content {
    min-height: 100vh;
    margin-left: 280px;
    padding: 2rem;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.4rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(215, 255, 31, 0.24);
}

.main-header h1 {
    margin-bottom: 0;
}

.hamburger {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1001;
    width: 46px;
    height: 46px;
    padding: 0.7rem;
    border-radius: 6px;
    cursor: pointer;
}

.hamburger-icon {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.hamburger-icon span {
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: var(--rw-lime);
}

.grid {
    display: grid;
    gap: 1rem;
}

.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-7 {
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.grid-7 > *,
.calendar-grid > * {
    min-width: 0;
}

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

.list-item {
    margin-bottom: 0.65rem;
    padding: 1rem;
    border-radius: var(--rw-radius);
    cursor: pointer;
}

.task-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    max-width: 100%;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    color: #040604;
    font-size: 0.82rem;
    font-weight: 950;
    line-height: 1.1;
}

.task-badge[style*="Verplicht"],
.task-badge[style*="var(--primary-color)"],
.task-badge[style*="var(--task-security)"] {
    color: #040604 !important;
}

.task-bar {
    background: var(--task-bar);
}

.task-stage {
    color: #fff1ef;
    background: var(--task-stage);
}

.task-catering {
    background: var(--task-catering);
}

.task-security {
    background: var(--task-security);
}

.task-parking {
    background: var(--task-parking);
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.calendar-header h2 {
    margin: 0;
    text-align: center;
}

.calendar-view-toggle {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0.32rem;
    border-radius: var(--rw-radius);
}

.calendar-view-toggle button {
    border-color: transparent;
    background: transparent;
    color: var(--rw-muted);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.55rem;
}

.calendar-day {
    min-height: 112px;
    aspect-ratio: 1;
    padding: 0.55rem;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--rw-radius);
    background: rgba(10, 12, 8, 0.82);
    overflow: hidden;
}

.calendar-day:hover {
    border-color: rgba(215, 255, 31, 0.42);
    background: rgba(24, 30, 18, 0.92);
}

.calendar-day.today {
    border-color: var(--rw-lime) !important;
    box-shadow: inset 0 0 0 1px var(--rw-lime), 0 0 0 3px rgba(215, 255, 31, 0.08);
}

.calendar-day.has-events {
    background: rgba(215, 255, 31, 0.08);
}

.calendar-day-number {
    margin-bottom: 0.35rem;
    color: var(--rw-lime);
    font-weight: 950;
}

.calendar-events {
    display: grid;
    gap: 0.25rem;
    font-size: 0.75rem;
}

.calendar-shift-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    margin-left: 0.4rem;
    padding: 0 6px;
    border-radius: 999px;
    color: #040604;
    background: var(--rw-lime);
    font-size: 0.7rem;
    font-weight: 900;
}

.calendar-week-grid {
    grid-template-columns: repeat(7, minmax(230px, 1fr));
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.calendar-week-day {
    min-width: 230px;
    overflow: hidden;
}

.calendar-week-day .flex-between {
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: flex-start;
}

.calendar-week-day .flex-between .btn-small {
    margin-left: auto;
    flex: 0 0 auto;
}

.calendar-week-shift {
    overflow: hidden;
}

.calendar-week-shift .flex-between {
    flex-wrap: wrap;
    gap: 0.5rem;
}

.calendar-week-shift .task-badge {
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.calendar-week-shift .flex-between,
.calendar-week-shift p {
    min-width: 0;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
}

.modal-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.modal {
    width: min(100%, 640px);
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.35rem;
    border-radius: var(--rw-radius);
    transform: translateY(10px) scale(0.98);
}

.modal-overlay.show .modal {
    transform: translateY(0) scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.modal-header h3 {
    margin: 0;
}

.modal-close {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    color: var(--rw-muted);
    background: rgba(0, 0, 0, 0.24);
    cursor: pointer;
}

.modal-close:hover {
    color: #040604;
    background: var(--rw-lime);
    border-color: var(--rw-lime);
}

.image-upload {
    position: relative;
    width: 100%;
}

.image-upload input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.image-upload-label {
    display: block;
    padding: 1.5rem;
    border: 1px dashed rgba(215, 255, 31, 0.42);
    border-radius: var(--rw-radius);
    color: var(--rw-muted);
    text-align: center;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.24);
}

.image-upload-label:hover {
    color: var(--rw-text);
    border-color: var(--rw-lime);
    background: rgba(215, 255, 31, 0.08);
}

.image-upload-preview {
    width: 100%;
    max-height: 300px;
    margin-top: 1rem;
    object-fit: contain;
    border-radius: var(--rw-radius);
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.event-image-container {
    width: 100%;
    max-width: 220px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--rw-radius);
    background: rgba(0, 0, 0, 0.34);
}

.event-image-container img,
.event-banner,
.event-image {
    display: block;
    object-fit: cover;
}

.event-image-container img {
    width: 100%;
    height: 100%;
}

.event-banner {
    width: calc(100% + 2.5rem);
    max-height: 220px;
    margin: -1.25rem -1.25rem 1rem;
    border-radius: var(--rw-radius) var(--rw-radius) 0 0;
}

.event-image {
    width: 120px;
    height: 120px;
    flex: 0 0 120px;
    border-radius: var(--rw-radius);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.event-card-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.event-card-details {
    flex: 1;
    min-width: 0;
}

.empty-state {
    padding: 3rem 1.5rem;
    border: 1px dashed rgba(215, 255, 31, 0.25);
    border-radius: var(--rw-radius);
    color: var(--rw-muted);
    text-align: center;
    background: rgba(0, 0, 0, 0.20);
}

.empty-state-icon {
    margin-bottom: 0.8rem;
    font-size: 3rem;
    opacity: 0.55;
}

.spinner {
    width: 20px;
    height: 20px;
    display: inline-block;
    border: 3px solid rgba(255, 255, 255, 0.26);
    border-top-color: var(--rw-lime);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes notifSlideIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.flex {
    display: flex;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

.hidden {
    display: none !important;
}

@media (max-width: 980px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 220ms ease;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .hamburger {
        display: block;
    }

    .main-content {
        margin-left: 0;
        padding: 5rem 1rem 1rem;
    }

    .main-header {
        flex-direction: column;
        align-items: stretch;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .calendar-header {
        align-items: stretch;
    }

    .calendar-header h2 {
        font-size: 1.1rem;
    }

    .grid-7[style],
    .grid.grid-7[style],
    .calendar-week-grid {
        grid-template-columns: repeat(7, minmax(230px, 1fr)) !important;
    }
}

@media (max-width: 680px) {
    .login-card {
        padding: 1.25rem;
    }

    .calendar-grid,
    .grid-7 {
        gap: 0.28rem;
    }

    .grid-7[style],
    .grid.grid-7[style],
    .calendar-week-grid {
        grid-template-columns: repeat(7, minmax(200px, 1fr)) !important;
    }

    .calendar-week-day {
        min-width: 200px;
    }

    .calendar-day {
        min-height: 48px;
        padding: 0.2rem 0.3rem;
        font-size: 0.78rem;
    }

    .calendar-events {
        display: none;
    }

    .calendar-day-number {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.25rem;
        margin: 0;
        font-size: 0.7rem;
        font-weight: 800;
        color: var(--rw-text);
    }

    .calendar-shift-count {
        min-width: 20px;
        height: 20px;
        margin-left: 0;
        font-size: 0.65rem;
    }

    .calendar-events .task-badge {
        min-height: 20px;
        padding: 0.18rem 0.36rem;
        font-size: 0.66rem;
    }

    .flex,
    .flex-between,
    .event-card-content {
        flex-direction: column;
        align-items: stretch;
    }

    .event-image {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        flex-basis: auto;
    }

    .toast {
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
}

/* ── Notificatie systeem ──────────────────────────────────── */

.notif-bell-wrap {
    position: absolute;
    top: 0.85rem;
    right: 1.25rem;
    z-index: 100;
}

.notif-bell-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0.3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: color 0.15s, background 0.15s;
}

.notif-bell-btn:hover {
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.07);
}

.notif-bell-btn .material-symbols-outlined { font-size: 1.3rem; }

.notif-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    background: var(--rw-red);
    color: #fff;
    border-radius: 50%;
    min-width: 16px;
    height: 16px;
    font-size: 0.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    pointer-events: none;
    line-height: 1;
}

.notif-panel {
    position: fixed;
    width: 320px;
    max-height: 460px;
    background: var(--rw-surface-strong);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: 0 14px 44px rgba(0, 0, 0, 0.7);
    z-index: 9000;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.notif-panel.notif-open { display: flex; }

.notif-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.notif-header-title { font-size: 0.875rem; }

.notif-count {
    color: var(--primary-color);
    font-weight: 700;
}

.notif-action-btn {
    font-size: 0.72rem !important;
    padding: 0.2rem 0.5rem !important;
}

.notif-empty {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.notif-list {
    overflow-y: auto;
    flex: 1;
}

.notif-item {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.15s;
}

.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: rgba(255, 255, 255, 0.04); }
.notif-unread { background: rgba(215, 255, 31, 0.04); }

.notif-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.notif-icon .material-symbols-outlined {
    font-size: 0.95rem;
    color: var(--primary-color);
}

.notif-body { flex: 1; min-width: 0; }

.notif-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.15rem;
}

.notif-msg {
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notif-time {
    font-size: 0.7rem;
    color: var(--text-secondary);
    opacity: 0.6;
    margin-top: 0.2rem;
}

.notif-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary-color);
    flex-shrink: 0;
    margin-top: 8px;
}

/* ── Groepenbeheer ──────────────────────────────────────────── */
.groep-card {
    display: flex;
    flex-direction: column;
}

.groep-lid-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    background: var(--rw-lime-soft);
    color: var(--rw-lime);
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.shift-gekoppeld-badge,
.shift-gekoppeld {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-left: 0.6rem;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    background: var(--rw-lime-soft);
    color: var(--rw-lime);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    vertical-align: middle;
}

.section-title-lime {
    color: var(--rw-lime);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 0.85rem;
}

/* Pill-tags voor locaties, taken en festivaldagen */
.pill-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
}

@media (max-width: 640px) {
    .pill-grid {
        grid-template-columns: 1fr;
    }
}

.pill-tag {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 0.5rem 0.5rem 0.5rem 0.9rem;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.20);
    font-size: 0.875rem;
    color: var(--text-primary, #fff);
}

.pill-tag button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 79, 64, 0.16);
    color: var(--rw-red);
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s ease, color 0.15s ease;
}

.pill-tag button:hover {
    background: var(--rw-red);
    color: #fff;
}

.pill-tag button .material-symbols-outlined {
    font-size: 1rem;
}

.koppeling-toggle {
    align-items: flex-start;
    cursor: pointer;
}

.koppeling-toggle input[type="checkbox"] {
    margin-top: 0.2rem;
    accent-color: var(--rw-lime);
    cursor: pointer;
}

/* ── Stap-indicator (formulier.html) ───────────────────────── */
.form-step-indicator {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.form-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.9rem;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.20);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    flex: 1;
    justify-content: center;
    text-align: center;
}

.form-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--rw-lime);
    color: #0c0f0a;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* ── Beschikbaarheidsdagen (formulier.html) ───────────────── */
.availability-day-list {
    display: grid;
    gap: 0.6rem;
}

.availability-day-row {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 0.6rem;
    align-items: center;
}

@media (max-width: 640px) {
    .availability-day-row {
        grid-template-columns: 1fr;
    }
}

.availability-day-note {
    width: 100%;
}

/* ── Vrijwilligers selectie checkbox-lijst (shift toevoegen) ─ */
.volunteer-checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    max-height: 240px;
    overflow-y: auto;
    padding: 0.5rem;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.20);
}

.volunteer-checkbox-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 0.6rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.volunteer-checkbox-row:hover {
    background: rgba(255, 255, 255, 0.05);
}

.volunteer-checkbox-row input[type="checkbox"] {
    accent-color: var(--rw-lime);
    cursor: pointer;
    flex-shrink: 0;
}

.volunteer-checkbox-row span:first-of-type {
    flex: 1;
}

.shift-koppeling-hint {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0.5rem 0 0;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    background: var(--rw-lime-soft);
    color: var(--rw-lime);
    font-size: 0.8rem;
}

/* ── Extra mobile media queries ─────────────────────────────── */

@media (max-width: 480px) {
    .main-content {
        padding: 4.5rem 0.75rem 1rem;
    }

    .card {
        padding: 0.9rem;
    }

    .main-header h1 {
        font-size: 1.25rem;
    }

    .btn {
        font-size: 0.8rem;
        padding: 0.55rem 0.9rem;
    }

    .flex.gap-2,
    .flex-between {
        gap: 0.5rem;
    }

    /* Tables on small screens scroll horizontally */
    .table-container {
        -webkit-overflow-scrolling: touch;
    }

    table {
        min-width: 540px;
    }

    th,
    td {
        padding: 0.6rem 0.65rem;
        font-size: 0.8rem;
    }

    /* Stacked "card" tables on mobile (Aanwezigheid, Shiften Inplannen) */
    .table-stack table {
        min-width: 0;
    }

    .table-stack thead {
        display: none;
    }

    .table-stack tbody,
    .table-stack tr,
    .table-stack td {
        display: block;
        width: 100%;
    }

    .table-stack table {
        width: 100%;
    }

    .table-stack tr {
        margin-bottom: 0.75rem;
        border: 1px solid var(--rw-border-soft);
        border-radius: var(--rw-radius);
        padding: 0.5rem 0.75rem;
        background: var(--rw-surface);
        box-sizing: border-box;
    }

    .table-stack td {
        box-sizing: border-box;
    }

    .table-stack tr:last-child {
        margin-bottom: 0;
    }

    .table-stack td {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 0.75rem;
        padding: 0.4rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        text-align: right;
    }

    .table-stack td:last-child {
        border-bottom: none;
    }

    .table-stack td::before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--text-secondary);
        text-align: left;
        flex-shrink: 0;
    }

    .table-stack td:empty,
    .table-stack td:not([data-label]) {
        display: none;
    }

    /* Modal fills screen */
    .modal {
        width: 100%;
        max-height: 95vh;
        padding: 1rem;
        border-radius: 12px 12px 0 0;
    }

    .modal-overlay {
        align-items: flex-end;
        padding: 0;
    }

    /* Form groups stack neatly */
    .form-group {
        margin-bottom: 0.9rem;
    }

    /* Buttons stacked in deploy/overview headers */
    .main-header .flex,
    .main-header .flex-between {
        flex-direction: column;
        align-items: stretch;
    }

    .main-header .flex .btn,
    .main-header .flex-between .btn {
        width: 100%;
        justify-content: center;
    }

    /* Notification panel fills more screen */
    .notif-panel {
        width: calc(100vw - 1.5rem);
        left: 0.75rem !important;
        right: 0.75rem;
    }

    /* Deploy tabs scroll */
    .tab-bar {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
    }

    .tab-bar .btn {
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* Cards in grid fall to single column */
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    /* Settings page preview chips wrap */
    #shiftPreviewSlots {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 360px) {
    .main-content {
        padding: 4rem 0.5rem 0.75rem;
    }

    .card {
        padding: 0.75rem;
    }

    table {
        min-width: 440px;
    }
}
