/* ===========================
   Vickers Gun Club – Styles
   =========================== */

:root {
    --vickers-green: #0C5119;
    --vickers-green-dark: #094013;
    --vickers-green-light: #0F6A21;
    --bg-light: #f4f7f4;
    --border-light: #d1d5db;
    --text-main: #222222;
}

/* Global */

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    margin: 0;
    background: var(--bg-light);
    color: var(--text-main);
}

a {
    color: var(--vickers-green);
}

/* Header & Navigation */

.site-header {
    background: var(--vickers-green);
    color: #ffffff;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.club-logo {
    height: 55px;
    width: auto;
    display: block;
}

.site-header h1 {
    margin: 0;
    font-size: 1.3rem;
}

.site-header nav {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.site-header a {
    color: #ffffff;
    text-decoration: none;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.9rem;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
}

.site-header a:hover {
    border-color: #ffffff;
    background: var(--vickers-green-dark);
    transform: translateY(-1px);
}

.nav-user {
    color: #d1f5da;
    font-size: 0.8rem;
}

/* Main content wrapper */

.main-content {
    max-width: 1100px;
    margin: 1.5rem auto 3rem;
    padding: 0 1rem;
}

/* Footer */

.site-footer {
    background: var(--vickers-green);
    color: #e5f4ea;
    text-align: center;
    padding: 0.75rem;
    font-size: 0.8rem;
}

/* Forms */

.form-card {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    max-width: 480px;
    margin-bottom: 2rem;
}

.form-card label {
    display: block;
    margin-bottom: 0.9rem;
    font-size: 0.9rem;
}

.form-card input,
.form-card textarea,
.form-card select {
    width: 100%;
    padding: 0.6rem 0.7rem;
    margin-top: 0.25rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-light);
    font: inherit;
    box-sizing: border-box;
    background: #f9fafb;
}

.form-card input:focus,
.form-card textarea:focus,
.form-card select:focus {
    outline: none;
    border-color: var(--vickers-green-light);
    box-shadow: 0 0 0 1px var(--vickers-green-light);
    background: #ffffff;
}

/* Buttons */

button {
    background: var(--vickers-green);
    border: none;
    color: #ffffff;
    padding: 0.6rem 1.4rem;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.1s ease;
}

button:hover {
    background: var(--vickers-green-dark);
    box-shadow: 0 4px 10px rgba(12, 81, 25, 0.4);
    transform: translateY(-1px);
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.btn-danger {
    background: #dc2626;
    color: #ffffff;
}

.btn-danger:hover {
    background: #ef4444;
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.4);
}

/* Small buttons / links */

.btn-small {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
    border-radius: 999px;
    background: var(--vickers-green);
    color: #ffffff;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background 0.2s ease, transform 0.1s ease;
}

.btn-small:hover {
    background: var(--vickers-green-dark);
    transform: translateY(-1px);
}

/* Alerts */

.alert {
    padding: 0.8rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.alert.success {
    background: #dcfce7;
    color: #14532d;
    border: 1px solid #bbf7d0;
}

.alert.error {
    background: #fee2e2;
    color: #7f1d1d;
    border: 1px solid #fecaca;
}

/* Calendar */

.calendar-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1rem 0;
    align-items: center;
    font-size: 0.95rem;
}

.calendar-nav a {
    text-decoration: none;
    color: var(--vickers-green);
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    border: 1px solid var(--border-light);
    background: #ffffff;
    transition: background 0.2s ease, border-color 0.2s, transform 0.1s;
}

.calendar-nav a:hover {
    background: #e5f4ea;
    border-color: var(--vickers-green-light);
    transform: translateY(-1px);
}

.calendar-nav span {
    font-weight: 600;
}

/* Calendar table */

.calendar {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.calendar th,
.calendar td {
    border: 1px solid #e5e7eb;
    width: 14.285%;
    vertical-align: top;
    padding: 0.4rem;
    box-sizing: border-box;
    height: 90px;
}

.calendar th {
    background: var(--vickers-green);
    color: #ffffff;
    font-weight: 500;
    font-size: 0.8rem;
}

.calendar td.empty {
    background: #f9fafb;
}

.day-number {
    font-weight: 600;
    font-size: 0.85rem;
}

.sunday {
    background: #fffbeb;
}

.day-actions {
    margin-top: 0.4rem;
}

.hint {
    font-size: 0.7rem;
    color: #6b7280;
}

/* Booking status chips in calendar cells */

.booking-status {
    margin-top: 0.2rem;
    font-size: 0.7rem;
    padding: 0.15rem 0.35rem;
    border-radius: 999px;
    display: inline-block;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-approved {
    background: #dcfce7;
    color: #166534;
}

.status-declined {
    background: #fee2e2;
    color: #991b1b;
}

/* Tables (Admin, lists, etc.) */

.table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    font-size: 0.9rem;
}

.table th,
.table td {
    border: 1px solid #e5e7eb;
    padding: 0.5rem 0.6rem;
    vertical-align: top;
}

.table th {
    background: #f9fafb;
    font-weight: 600;
}

/* colour rows by status for quick scanning */

.status-row-approved {
    background: #f0fdf4;
}

.status-row-declined {
    background: #fef2f2;
}

.status-row-pending {
    background: #fffbeb;
}

/* Inline form (admin approve/decline buttons) */

.inline-form {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

/* Small utilities */

h2 {
    margin-top: 0;
    margin-bottom: 1rem;
}

p {
    margin-top: 0;
}
/* Logo bar */
.logo-bar {
    background: #ffffff;
    text-align: center;
    padding: 0.8rem 0;
    border-bottom: 2px solid #e5e7eb;
}

.club-logo-top {
    height: 80px;
    width: auto;
}
