﻿:root {
    --primary: #004E74;
    --bg: #e9eff3;
    --card: #ffffff;
    --inner: #f2f7fa;
    --border: #cfdde5;
    --text: #1f2933;
    --muted: #5b6b75;
}

* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: var(--bg);
    margin: 0;
    padding: 16px;
    color: var(--text);
    font-size: 18px; /* 👈 bump base size */
    line-height: 1.5;
}


.page {
    max-width: 900px;
    margin: auto;
}

.card {
    background: var(--card);
    border-radius: 20px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
    padding: 22px;
    margin-bottom: 24px;
}


.header {
    text-align: center;
    margin-bottom: 16px;
}

    .header h1 {
        margin: 0;
        font-size: 1.6rem;
    }

    .header h2 {
        margin: 6px 0;
        font-size: 1.2rem;
        color: var(--muted);
    }

    .header p {
        margin: 0;
        font-size: 1rem;
        color: var(--muted);
    }

.week {
    background: var(--inner);
    border-radius: 16px;
    border: 2px solid #6b8496;
    padding: 16px;
    margin-bottom: 16px;
}


.week-title {
    font-weight: 600;
    margin-bottom: 10px;
}

.slots {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

button {
    background: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.05s ease, box-shadow 0.05s ease;
}

    button:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    }

    button:active {
        transform: translateY(0);
        box-shadow: none;
    }


.taken {
    background: #e5e7ef;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.9rem;
}

input, select {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 1rem;
}

.form-row {
    margin-bottom: 14px;
}

.admin-card {
    max-width: 500px;
    margin: 40px auto;
}

.admin-divider {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 28px 0;
}

.admin-help {
    color: var(--muted);
    font-size: 0.9rem;
}

.admin-message {
    min-height: 1.5em;
    font-weight: 600;
}

.admin-message.success { color: #176b3a; }
.admin-message.error { color: #9b2c2c; }

.admin-actions, .event-row-actions {
    display: flex;
    gap: 8px;
}

.secondary-button { background: #52636e; }
.danger-button { background: #9b2c2c; }
button:disabled { cursor: not-allowed; opacity: 0.55; }

.event-list { margin-top: 18px; }
.event-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.event-row-actions button { padding: 8px 10px; font-size: 0.85rem; }

@media (max-width: 600px) {
    .event-row { align-items: flex-start; flex-direction: column; }
    .admin-actions { flex-direction: column; }
}

.spacer {
    height: 300px;
}

.progress-wrap {
    margin-bottom: 10px;
}

.progress-bar {
    width: 100%;
    height: 14px;
    background: #dbe7ee;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    transition: width 0.3s ease;
}

.progress-label {
    font-size: 0.85rem;
    margin-top: 4px;
    color: var(--muted);
}

.names-toggle {
    font-size: 1.125em;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    padding: 6px 4px;
    user-select: none;
}

.names-toggle:hover {
    text-decoration: underline;
}

.names-list {
    margin-top: 8px;
    display: none;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

.name-pill {
    background: #d7e6ee;
    color: #00334d;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.85rem;
}
/* Modal background */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
}

/* Modal content */
.modal-content {
    background-color: #fff;
    margin: 10vh auto;
    padding: 20px;
    border-radius: 14px;
    max-width: 92%;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

    .modal-content h2 {
        margin-top: 0;
    }

    .modal-content input {
        width: 100%;
        padding: 8px 10px;
        margin: 8px 0;
        border-radius: 6px;
        border: 1px solid #ccc;
        font-size: 1rem;
    }

    .modal-content button {
        width: 100%;
        padding: 10px;
        margin-top: 10px;
        background-color: #004E74;
        color: #fff;
        border: none;
        border-radius: 6px;
        font-size: 1rem;
        cursor: pointer;
    }

        .modal-content button:hover {
            background-color: #006a99;
        }

    /* Close button */
    .modal-content .close {
        float: right;
        font-size: 1.5rem;
        cursor: pointer;
    }

@media (max-width: 600px) {

    button {
        width: 100%;
        font-size: 1.1rem;
        padding: 16px;
        border-radius: 16px;
    }

    .cancel-link {
        display: inline-block;
        margin-top: 10px;
        font-size: 1rem;
    }
}

@media (max-width: 600px) {

    .card {
        padding: 18px;
        border-radius: 16px;
    }

    .week {
        padding: 14px;
    }

    .week-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 600px) {
    .modal-content {
        margin: 6vh auto;
    }
}

.name-pill {
    font-size: 0.95rem;
    padding: 8px 12px;
}

@media (max-width: 600px) {

    .signup-button {
        width: 100%;
        font-size: 1.1rem;
        padding: 18px;
        border-radius: 16px;
        margin-top: 12px;
    }
}

.signup-card {
    margin-top: 12px;
    background: #f8fbfd;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 10px 12px;
}

@media (max-width: 600px) {
    .signup-card {
        padding: 12px;
    }

    .names-toggle {
        font-size: 1rem;
    }
}

.name-pill.user-name {
    cursor: pointer; /* shows the hand icon */
    text-decoration: none; /* optional: remove underline if any */
    transition: background 0.2s, color 0.2s;
}

    .name-pill.user-name:hover {
        background-color: #e4f0f7; /* light highlight */
        color: var(--primary); /* optional color change */
        text-decoration: underline; /* optional for emphasis */
    }

.form-nav-arrow {
    font-size: 1.5em; /* Make arrows bigger */
    text-decoration: none; /* Remove underline */
    color: var(--primary); /* Use your primary color */
    transition: transform 0.2s, color 0.2s; /* Smooth hover effect */
    cursor: pointer;
    padding: 0 10px;
}

    .form-nav-arrow:hover {
        color: #2e8b57; /* Highlight color on hover */
        transform: scale(1.3); /* Slightly enlarge on hover */
    }

    .form-nav-arrow.disabled {
        color: #ccc; /* Gray if no previous/next */
        cursor: default;
        transform: none;
    }

.consent-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 14px;
    background: #fafafa;
}

.consent-title {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95em;
}

.consent-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

    .consent-row input[type="checkbox"] {
        margin-top: 3px;
        flex-shrink: 0;
    }

    .consent-row label {
        line-height: 1.4;
        font-size: 0.9em;
    }

.week-group {
    position: relative;
    margin-bottom: 25px;
    padding: 12px 0 12px 22px;
}

    .week-group::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 6px;
        border-radius: 6px;
        background: linear-gradient( to bottom, var(--primary) 0%, var(--primary) 35%, #6f9cff 70%, #cfe0ff 100% );
    }

.week-group-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}
