* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem 2rem;
}

nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1rem 0;
    border-bottom: 2px solid #1e3a5f;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

nav a:first-child {
    font-weight: bold;
    font-size: 1.2rem;
    margin-right: auto;
}

nav a { color: #1e3a5f; text-decoration: none; }
nav a:hover { text-decoration: underline; }
nav span { color: #666; font-size: 0.9rem; }

h1 { margin-bottom: 1rem; color: #1e3a5f; }
h2 { margin-bottom: 0.75rem; color: #1e3a5f; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #1e3a5f;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.15s;
    white-space: nowrap;
}
.btn:hover { background: #2c5282; }
.btn-danger { background: #c53030; }
.btn-danger:hover { background: #e53e3e; }
.btn-success { background: #2f855a; }
.btn-success:hover { background: #38a169; }

/* Tables */
table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
th, td { padding: 0.6rem 0.75rem; text-align: left; border-bottom: 1px solid #e2e8f0; }
th { background: #f7fafc; font-weight: 600; color: #4a5568; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.03em; }
td { font-size: 0.95rem; }
tr:hover { background: #f7fafc; }

/* Flash messages */
.flash { padding: 0.75rem 1rem; margin-bottom: 1rem; border-radius: 6px; font-size: 0.95rem; }
.flash.success { background: #c6f6d5; color: #22543d; }
.flash.error { background: #fed7d7; color: #742a2a; }
.flash.info { background: #bee3f8; color: #2a4365; }

/* Forms */
form .field { margin-bottom: 1rem; }
form label { display: block; font-weight: 600; margin-bottom: 0.25rem; font-size: 0.9rem; color: #4a5568; }
form input, form textarea, form select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 1rem;
    color: #333;
    background: #fff;
    transition: border-color 0.15s;
}
form input:focus, form textarea:focus, form select:focus {
    outline: none;
    border-color: #1e3a5f;
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}
form textarea { resize: vertical; min-height: 80px; }

/* Status badges */
.status-pending { color: #b7791f; font-weight: 600; }
.status-approved { color: #2f855a; font-weight: 600; }
.status-denied { color: #c53030; font-weight: 600; }

/* Action button rows */
.actions { display: flex; gap: 0.4rem; align-items: center; flex-wrap: wrap; }

/* Side-by-side layout for form + calendar */
.split-layout {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}
.split-layout > .split-form {
    flex: 1;
    min-width: 320px;
    max-width: 480px;
}
.split-layout > .split-calendar {
    flex: 2;
    min-width: 500px;
}

/* FullCalendar overrides */
.fc {
    font-size: 0.9rem;
}
.fc .fc-toolbar-title {
    font-size: 1.1rem;
}
.fc .fc-button {
    font-size: 0.85rem;
    padding: 0.3rem 0.6rem;
}
.fc .fc-col-header-cell-cushion {
    font-weight: 600;
    color: #4a5568;
}
.fc-event {
    border-radius: 4px;
    border: none;
    padding: 1px 4px;
    font-size: 0.85rem;
}

/* Legend */
.legend {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    color: #666;
}
.legend-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 3px;
    vertical-align: middle;
    margin-right: 0.25rem;
}

/* Filter bar */
.filter-bar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}
.filter-bar span {
    font-weight: 600;
    color: #4a5568;
    font-size: 0.9rem;
}
