* {
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
    margin: 0;
    background: #f3f4f6;
    color: #111827;
}

a {
    color: #2563eb;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.topbar {
    background: #111827;
    color: #f9fafb;
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-weight: 600;
}

.topbar-right span {
    margin-right: 10px;
    font-size: 14px;
}

.main-nav {
    background: #1f2937;
    padding: 8px 16px;
}

.main-nav a {
    color: #e5e7eb;
    margin-right: 12px;
    font-size: 14px;
}

.main-nav a:hover {
    color: #ffffff;
}

.content {
    padding: 16px;
    max-width: 1100px;
    margin: 0 auto;
}

.footer {
    padding: 12px 16px;
    text-align: center;
    font-size: 12px;
    color: #6b7280;
}

.card {
    background: #ffffff;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 1px 2px rgba(15,23,42,0.07);
}

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

.grid {
    display: grid;
    grid-gap: 16px;
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.metric {
    font-size: 28px;
    font-weight: 600;
    margin-top: 8px;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.table th,
.table td {
    border-bottom: 1px solid #e5e7eb;
    padding: 8px;
}

.table th {
    text-align: left;
    background: #f9fafb;
}

.table tr:nth-child(even) {
    background: #f9fafb;
}

.text-center {
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    border: none;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
}

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

.btn-primary {
    background: #2563eb;
    color: #ffffff;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.btn-secondary {
    background: #6b7280;
    color: #ffffff;
}

.btn-danger {
    background: #dc2626;
    color: #ffffff;
}

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

.alert {
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 8px;
    font-size: 13px;
}

.alert-danger {
    background: #fee2e2;
    color: #b91c1c;
}

.badge {
    display: inline-block;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 999px;
}

.status-enquiry {
    background: #e5e7eb;
    color: #374151;
}

.status-pending_deposit {
    background: #fef3c7;
    color: #92400e;
}

.status-confirmed {
    background: #bbf7d0;
    color: #166534;
}

.status-finished {
    background: #dbeafe;
    color: #1d4ed8;
}

.status-cancelled {
    background: #fee2e2;
    color: #b91c1c;
}

.filter-form {
    margin-bottom: 12px;
}

.filter-form input[type="text"] {
    padding: 6px 8px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    font-size: 13px;
    margin-right: 8px;
    min-width: 260px;
}

/* Login */

.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: radial-gradient(circle at top, #1d4ed8 0, #111827 55%);
}

.login-box {
    background: #111827;
    color: #e5e7eb;
    padding: 24px 20px;
    border-radius: 12px;
    width: 320px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

.login-box h1 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 22px;
    text-align: center;
}

.login-box label {
    font-size: 13px;
    margin-bottom: 4px;
    display: block;
}

.login-box input[type="text"],
.login-box input[type="password"] {
    width: 100%;
    padding: 8px 10px;
    margin-bottom: 10px;
    border-radius: 6px;
    border: 1px solid #4b5563;
    background: #020617;
    color: #f9fafb;
}

.login-note {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 8px;
}

/* Form layout */

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    grid-gap: 16px;
}

form label {
    font-size: 13px;
    display: block;
    margin-bottom: 4px;
    margin-top: 8px;
}

form input[type="text"],
form input[type="email"],
form input[type="number"],
form input[type="date"],
form input[type="time"],
form select,
form textarea {
    width: 100%;
    padding: 6px 8px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    font-size: 13px;
}

.small-text {
    font-size: 12px;
    color: #6b7280;
}

/* Calendar */

.calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.calendar-title {
    font-weight: 600;
}

.calendar {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(15,23,42,0.07);
    margin-bottom: 12px;
}

.calendar th,
.calendar td {
    border: 1px solid #e5e7eb;
    vertical-align: top;
    padding: 4px;
    width: 14.28%;
    height: 110px;
    font-size: 12px;
}

.calendar th {
    background: #f9fafb;
    text-align: center;
}

.calendar-day {
    position: relative;
}

.day-number {
    font-size: 11px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
}

.calendar-booking {
    font-size: 11px;
    margin-bottom: 2px;
    padding: 2px 3px;
    border-radius: 4px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.calendar-booking a {
    color: inherit;
}

.calendar-empty {
    background: #f9fafb;
    color: #9ca3af;
}

.calendar td.empty {
    background: #f3f4f6;
}
