:root {
    --bg: #0f1724;
    --card: #0b1220;
    --muted: #9aa7bf;
    --accent: #7dd3fc;
    --glass: rgba(255, 255, 255, 0.03);
}

html,
body {
    height: 100%;
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, Segoe UI, Roboto, Helvetica,
        Arial;
    background: linear-gradient(180deg, #071024 0%, #071726 100%);
    color: #e6eef8;
}

.container {
    max-width: 1100px;
    margin: 28px auto;
    padding: 20px;
}

h1 {
    margin: 0 0 12px;
    font-weight: 700;
}

.layout {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 18px;
}

.card {
    background: var(--card);
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 6px 20px rgba(2, 6, 23, 0.6);
}

label {
    display: block;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 6px;
}

input[type="text"],
select,
input[type="time"],
input[type="number"] {
    width: 100%;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    background: var(--glass);
    color: inherit;
}

select {
    background: var(--card);
    /* Match the card background for consistency */
}

select option {
    background: var(--card);
    /* Ensure dropdown options have the same background */
    color: inherit;
    /* Use the same text color as the rest of the app */
}

.persons {
    max-height: 420px;
    overflow: auto;
    margin-top: 8px;
}

.person-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 8px;
    margin-bottom: 6px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.01), transparent);
}

.person-name {
    flex: 1;
}

button {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 8px 10px;
    border-radius: 8px;
    color: inherit;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(90deg, #0369a1, #0284c7);
    border: none;
}

.small {
    font-size: 12px;
    padding: 6px 8px;
}

.events {
    margin-top: 8px;
}

.event-row {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-bottom: 6px;
}

.days {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.days button {
    padding: 6px;
    border-radius: 6px;
}

.timetable {
    overflow: auto;
    padding: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 8px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.03);
    text-align: left;
}

.free-pill {
    display: inline-block;
    padding: 6px 8px;
    border-radius: 999px;
    background: rgba(125, 211, 252, 0.12);
    border: 1px solid rgba(125, 211, 252, 0.12);
    font-size: 13px;
}

.muted {
    color: var(--muted);
}

.inline {
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.controls {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 10px;
}

.days-header {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

footer {
    margin-top: 18px;
    color: var(--muted);
    font-size: 13px;
}

.flex {
    display: flex;
    gap: 8px;
}

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

.checkbox {
    width: 16px;
    height: 16px;
}

.danger {
    border-color: #7f1d1d;
}

.note {
    font-size: 13px;
    color: var(--muted);
    margin-top: 8px;
}

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