:root {
    --bg-primary: #ffffff;
    --text-primary: #111111;
    --text-muted: #666666;
    --border-color: #e5e5e5;
    --accent-color: #000000;
    --accent-hover: #333333;
    --danger-color: #df2020;
    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-stack);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    padding: 2rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1 {
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
}

h3 {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

h3 strong {
    color: var(--text-primary);
    font-weight: 500;
}

a {
    color: white;
    text-decoration: none;
}

.hidden {
    display: none !important;
}

.status-message {
    padding: 1rem 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
    text-transform: capitalize;
}

.success {
    color: green;
}

.error {
    color: var(--danger-color);
}

button {
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    background-color: var(--accent-color);
    color: var(--bg-primary);
    border: none;
    padding: 0.6rem 1.2rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

button:hover {
    background-color: var(--accent-hover);
}

button#cancelReservationFormBtn {
    background-color: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    margin-right: 0.5rem;
}

button#cancelReservationFormBtn:hover {
    background-color: #fafafa;
    color: var(--text-primary);
}

/* Inputs & Forms */
input,
select {
    font-family: inherit;
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s ease;
}

input:focus,
select:focus {
    border-color: var(--accent-color);
}

/* Dynamic Filter Panel */
.filter-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin: 2rem 0;
    padding: 1.25rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Creation Form Layout */
#createReservationForm {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin: 2rem 0;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

#createReservationForm>div {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

#createReservationForm label {
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.form-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    margin-top: 0.5rem;
}

/* Responsive Table container */
.table-container {
    width: 100%;
    overflow-x: auto;
    margin: 1.5rem 0;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.85rem;
}

th {
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 2px solid var(--accent-color);
    padding: 0.75rem 1rem;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    white-space: nowrap;
}

tr:hover td {
    background-color: #fafafa;
}

/* Detail Block & Timeline */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.timeline-list {
    margin-top: 1rem;
    border-left: 1px solid var(--border-color);
    padding-left: 1.25rem;
}

.timeline-item {
    position: relative;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.timeline-item strong {
    color: var(--text-primary);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: calc(-1.25rem - 4px);
    top: 6px;
    width: 7px;
    height: 7px;
    background: var(--accent-color);
    border-radius: 50%;
}