/* EV-Queue Landing Styles — aligned with evqueue.com look */
:root {
    /* Brand palette */
    --brand-primary: #2f9e44; /* EV‑Queue green */
    --brand-primary-dark: #2b8a3e;
    --brand-primary-25: #e6f4ea; /* light tint for badges/backgrounds */
    --brand-accent: #198754; /* supportive green */

    /* Typography */
    --heading-font: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* used for headers and nav */

    /* Bootstrap primary override (best-effort) */
    --bs-primary: var(--brand-primary);
    --bs-primary-rgb: 47, 158, 68;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
    color: #1f2937;
    background-color: #f5f7f9; /* soft gray like the live site */
}

/* Navbar — force green background and white text even if bg-white class is present */
.navbar {
    background-color: var(--brand-primary) !important;
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.15);
}

.navbar .navbar-brand {
    color: #fff;
    letter-spacing: 0.2px;
    font-weight: 700;
}

.navbar .nav-link {
    color: #e7f4eb;
}

.navbar .nav-link:hover {
    color: #ffffff;
}

/* Make the primary button in the navbar stand out as a light pill */
.navbar .btn.btn-primary {
    background-color: #ffffff;
    color: var(--brand-primary);
    border-color: #ffffff;
}

.navbar .btn.btn-primary:hover {
    background-color: #f3faf5;
    color: var(--brand-primary-dark);
    border-color: #f3faf5;
}

/* Hero subtle green gradient */
.hero-gradient {
    background: linear-gradient(180deg, rgba(47, 158, 68, 0.08) 0%, rgba(47, 158, 68, 0.02) 100%);
}

/* Icon badge uses green tint */
.icon-badge {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--brand-primary-25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-primary);
    font-size: 1rem;
}

/* Cards — slightly rounder corners */
.card {
    border-radius: 14px;
}

/* Buttons and borders in brand color */
.btn-primary {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
}

.btn-primary:hover {
    background-color: var(--brand-primary-dark);
    border-color: var(--brand-primary-dark);
}

.btn-outline-primary {
    color: var(--brand-primary);
    border-color: var(--brand-primary);
}

.btn-outline-primary:hover {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #fff;
}

.border-primary {
    border-color: var(--brand-primary) !important;
}

/* Footer links */
footer a {
    color: #6b7280;
}

footer a:hover {
    color: var(--brand-primary);
}

/* Typography: use Segoe stack for headings and navbar to align with related project while keeping body on Inter */
h1, h2, h3, h4, h5, h6,
.navbar .navbar-brand,
.navbar .nav-link {
    font-family: var(--heading-font);
}

:root {
    --hour-height: 50px; /* hoogte per uur */
    --timecol-width: 70px;
    --daygap: 1px; /* lijntje tussen dagen */
    --event-radius: 10px;
}

body {
    background: #f7f7f9;
}

.calendar-wrap {
    max-width: 1200px;
    margin: 20px auto;
    position: relative;
}

.calendar-loading-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.75);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 20;
    backdrop-filter: blur(2px);
}

.calendar-wrap.loading .calendar-loading-backdrop {
    display: flex;
}

.calendar-wrap.loading .calendar,
.calendar-wrap.loading .calendar-toolbar {
    pointer-events: none;
    user-select: none;
    opacity: 0.5;
}

.calendar-toolbar {
    position: sticky;
    top: 0;
    z-index: 5;
    background: #fff;
    border-radius: .75rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.calendar {
    display: grid;
    grid-template-columns: var(--timecol-width) 1fr;
    gap: 8px;
}

.time-col {
    background: #fff;
    border-radius: .75rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
}

.time-col .hour {
    height: var(--hour-height);
    font-size: .9rem;
    color: #777;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 4px 8px;
}

.days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: var(--daygap);
}

.day-col {
    background: #fff;
    border-radius: .75rem;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.day-header {
    position: sticky;
    top: 56px; /* below toolbar */
    z-index: 3;
    background: #fff;
    text-align: center;
    padding: 8px 6px;
    border-bottom: 1px solid #eee;
    font-weight: 600;
}

.day-body {
    position: relative;
    height: calc(var(--hour-height) * 24);
    cursor: crosshair;
}

/* horizontale uur-lijnen */
.day-body::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(to bottom, #f1f3f5 0 1px, transparent 1px var(--hour-height));
    pointer-events: none;
}

.now-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: #dc3545;
    box-shadow: 0 0 0 1px rgba(220, 53, 69, .2);
    z-index: 2;
}

/* selectie tijdens slepen */
.drag-select {
    position: absolute;
    left: 2px;
    right: 2px;
    background: rgba(13, 110, 253, .15);
    border: 1px dashed #0d6efd;
    border-radius: var(--event-radius);
    z-index: 1;
    pointer-events: none;
}

/* afspraak */
.event {
    position: absolute;
    left: 6px;
    right: 6px;
    background: #0d6efd;
    color: #fff;
    border-radius: var(--event-radius);
    padding: 8px 10px 6px;
    box-shadow: 0 6px 18px rgba(13, 110, 253, .25);
    cursor: pointer;
    user-select: none;
}

.event .time {
    font-size: .75rem;
    opacity: .9;
}

.event .note {
    font-size: .9rem;
    font-weight: 600;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* resize handles */
.event .resize {
    position: absolute;
    left: 0;
    right: 0;
    height: 8px;
    cursor: ns-resize;
}

.event .resize.top {
    top: -3px;
}

.event .resize.bottom {
    bottom: -3px;
}

/* helper voor select-inputs */
.time-select {
    font-variant-numeric: tabular-nums;
}
