:root {
    --dark: #111827;
    --gold: #d6a84f;
    --gold-light: #f5d37b;
    --blue: #1e3a8a;
    --white: #ffffff;
    --gray: #f3f4f6;
    --text: #374151;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--gray);
    color: var(--text);
}

.hero {
    min-height: 100vh;
    background:
        linear-gradient(135deg, rgba(17,24,39,.95), rgba(30,58,138,.92)),
        url('https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.container {
    max-width: 1150px;
    width: 100%;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 40px;
    align-items: center;
}

.logo {
    width: 105px;
    height: 105px;
    border: 3px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-light);
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: 52px;
    line-height: 1.05;
    margin: 0 0 20px;
}

.hero p {
    font-size: 20px;
    line-height: 1.6;
    max-width: 650px;
    color: #e5e7eb;
}

.features {
    margin-top: 30px;
    display: grid;
    gap: 14px;
}

.feature {
    background: rgba(255,255,255,.1);
    border-left: 4px solid var(--gold);
    padding: 15px 18px;
    border-radius: 10px;
}

.card {
    background: var(--white);
    color: var(--text);
    border-radius: 22px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
}

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.tab-button {
    flex: 1;
    border: none;
    padding: 14px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: bold;
    background: #e5e7eb;
    color: var(--dark);
}

.tab-button.active {
    background: var(--gold);
    color: var(--dark);
}

.form-section {
    display: none;
}

.form-section.active {
    display: block;
}

h2 {
    margin-top: 0;
    color: var(--dark);
}

label {
    display: block;
    font-weight: bold;
    margin: 14px 0 6px;
    color: var(--dark);
}

input {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 15px;
}

.date-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 10px;
}

.range-box {
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    padding: 14px;
    border-radius: 14px;
    margin-top: 15px;
}

.range-title {
    font-weight: bold;
    color: var(--blue);
    margin-bottom: 8px;
}

.btn {
    display: inline-block;
    width: 100%;
    margin-top: 20px;
    border: none;
    background: var(--blue);
    color: white;
    padding: 15px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
}

.btn.gold {
    background: var(--gold);
    color: var(--dark);
}

.notice {
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 18px;
    font-weight: bold;
}

.success {
    background: #dcfce7;
    color: #166534;
}

.error {
    background: #fee2e2;
    color: #991b1b;
}

.small-text {
    font-size: 14px;
    line-height: 1.5;
    color: #6b7280;
    margin-top: 14px;
}

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

    .hero h1 {
        font-size: 38px;
    }

    .hero p {
        font-size: 18px;
    }
}

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

    .card {
        padding: 22px;
    }

    .hero {
        padding: 25px 15px;
    }
}

.admin-page {
    background: #f3f4f6;
}

.admin-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
}

.admin-header h1 {
    color: var(--dark);
    margin-bottom: 5px;
}

.admin-login-card {
    max-width: 420px;
    width: 100%;
}

.dark-logo {
    color: var(--blue);
    border-color: var(--gold);
    margin-bottom: 20px;
}

.logout-btn {
    width: auto;
    padding: 12px 22px;
    margin-top: 0;
}

.request-card {
    background: white;
    border-radius: 18px;
    padding: 25px;
    margin-bottom: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

.request-card h2 {
    margin-bottom: 10px;
}

.request-card h3 {
    margin-top: 25px;
    color: var(--blue);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
}

.admin-table th,
.admin-table td {
    border: 1px solid #e5e7eb;
    padding: 12px;
    text-align: left;
}

.admin-table th {
    background: #f9fafb;
    color: var(--dark);
}

@media (max-width: 700px) {
    .admin-header {
        display: block;
    }

    .logout-btn {
        margin-top: 15px;
    }
}

.request-top {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
}

.request-actions {
    min-width: 240px;
}

.small-btn {
    width: auto;
    padding: 12px 18px;
    margin-top: 0;
}

@media (max-width: 800px) {
    .request-top {
        display: block;
    }

    .request-actions {
        margin-top: 20px;
    }

    .small-btn {
        width: 100%;
    }
}
.danger-btn {
    background: #b91c1c;
    color: #ffffff;
    margin-top: 12px;
}

.request-actions form {
    margin-bottom: 10px;
}
.card .small-text {
    color: #4b5563;
}
.card .small-text {
    color: #4b5563;
}

.danger-btn {
    background: #b91c1c;
    color: #ffffff;
    margin-top: 12px;
}

.request-actions form {
    margin-bottom: 10px;
}

button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

#calendar {
    margin-top: 25px;
    background: #ffffff;
}

.fc {
    font-family: Arial, Helvetica, sans-serif;
}

.fc .fc-toolbar-title {
    color: var(--dark);
    font-size: 24px;
}

.fc .fc-button-primary {
    background: var(--blue);
    border-color: var(--blue);
}

.fc .fc-button-primary:hover {
    background: #152f75;
    border-color: #152f75;
}

.fc-event {
    cursor: pointer;
    border: none;
    padding: 3px 5px;
    font-size: 13px;
}

.calendar-layout {
    display: grid;
    grid-template-columns: 310px 1fr;
    gap: 24px;
    align-items: start;
}

.calendar-sidebar {
    display: grid;
    gap: 20px;
}

.sidebar-card {
    padding: 22px;
}

.legend-button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #e5e7eb;
    border-left: 6px solid var(--blue);
    background: #ffffff;
    color: var(--dark);
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    text-align: left;
    font-weight: bold;
}

.legend-button small {
    display: block;
    margin-left: auto;
    color: #6b7280;
    font-weight: normal;
}

.legend-button.active {
    background: #eff6ff;
    border-color: var(--blue);
    border-left-width: 8px;
}

.legend-button.show-all {
    justify-content: center;
    border-left-color: var(--gold);
    background: var(--gold);
}

.legend-dot {
    width: 13px;
    height: 13px;
    display: inline-block;
    border-radius: 50%;
    flex-shrink: 0;
}

.team-event-legend {
    margin-top: 20px;
    border-top: 1px solid #e5e7eb;
    padding-top: 15px;
}

.team-event-legend h3 {
    margin-top: 0;
}

.legend-row {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 8px 0;
    font-size: 14px;
}

.upcoming-event {
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
}

.upcoming-event strong {
    display: block;
    color: var(--dark);
}

.upcoming-event span {
    display: block;
    margin-top: 4px;
    color: #6b7280;
    font-size: 14px;
}

.calendar-heading {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.active-filter-notice {
    background: #dbeafe;
    color: #1e3a8a;
    padding: 12px 15px;
    border-radius: 10px;
    font-weight: bold;
    margin-bottom: 15px;
}

#calendar {
    margin-top: 20px;
}

.fc-event {
    font-weight: bold;
}

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

    .calendar-heading {
        display: block;
    }

    .calendar-heading .btn {
        margin-top: 15px;
    }
}

.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

select,
textarea,
input[type="color"] {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 15px;
    font-family: Arial, Helvetica, sans-serif;
}

textarea {
    resize: vertical;
}

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

.inline-form select {
    min-width: 100px;
}

.inline-form .btn {
    margin-top: 0;
}

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

    .inline-form {
        display: block;
    }

    .inline-form .btn {
        width: 100%;
        margin-top: 8px;
    }
}
