* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: "Segoe UI", Arial, sans-serif;
    background: #0d342f;
}

a {
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
}

.site-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px 4vw;
    background: rgba(7, 35, 43, 0.96);
    color: white;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

main {
    min-height: calc(100vh - 119px);
    background:
        radial-gradient(circle at 20% 0%, rgba(42, 179, 147, 0.18), transparent 34%),
        linear-gradient(180deg, #0e3943 0%, #0d342f 52%, #173d32 100%);
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
    background: rgba(7, 35, 43, 0.98);
    color: white;
    font-size: 15px;
    font-weight: 700;
    padding: 18px 4vw;
    text-align: center;
}

.footer-admin-link {
    color: white;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 8px;
    padding: 8px 12px;
}

.footer-admin-link:hover {
    background: rgba(255, 255, 255, 0.14);
}

.footer-contact {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.footer-contact a {
    border-radius: 999px;
    color: white;
    font-size: 14px;
    font-weight: 800;
    padding: 8px 12px;
    text-align: center;
    text-decoration: none;
}

.footer-contact a:nth-of-type(1) {
    background: #22c55e;
}

.footer-contact a:nth-of-type(2) {
    background: #0d6efd;
}

.brand {
    font-size: 22px;
    font-weight: 800;
    text-decoration: none;
}

.site-nav nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.site-nav nav a {
    color: white;
    text-decoration: none;
    padding: 9px 14px;
    border-radius: 8px;
}

.site-nav nav a.active,
.site-nav nav a:hover {
    background: rgba(205, 232, 221, 0.16);
}

.hero {
    min-height: 340px;
    background:
        linear-gradient(90deg, rgba(7, 35, 43, 0.68), rgba(21, 94, 83, 0.34), rgba(10, 49, 58, 0.64)),
        url("/image/v21.jpg");
    background-size: cover;
    background-position: center;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
}

.hero h1 {
    font-size: 50px;
    line-height: 1.05;
    margin: 0 0 18px;
    text-shadow: 0 6px 22px rgba(0, 0, 0, 0.42);
}

.hero p {
    font-size: 26px;
    margin: 0;
}

.floor-buttons,
.layout-button-container {
    text-align: center;
    margin: 28px 0;
}

.layout-button-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
    padding: 0 20px;
}

.floor-buttons button,
.layout-btn {
    border: 0;
    background: #1787a6;
    color: white;
    padding: 14px 30px;
    margin: 6px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(5, 18, 24, 0.22);
}

.floor-buttons button.active-floor,
.floor-buttons button:hover,
.layout-btn:hover {
    background: #0f6f8d;
}

.layout-photo-btn {
    width: min(330px, 100%);
    border: 0;
    border-radius: 8px;
    background: white;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
    color: #0f172a;
    cursor: pointer;
    overflow: hidden;
    padding: 0;
    text-align: left;
}

.layout-photo-btn img {
    display: block;
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.layout-photo-btn span {
    display: block;
    padding: 14px 16px;
    font-weight: 800;
}

.layout-photo-btn:hover {
    transform: translateY(-2px);
}

.outdoor-layout-preview {
    width: min(1100px, 94%);
    margin: 0 auto 24px;
    display: grid;
    grid-template-columns: minmax(220px, 0.8fr) minmax(260px, 1.2fr);
    align-items: center;
    gap: 18px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.12);
    padding: 22px;
}

.outdoor-layout-preview h2 {
    margin: 0 0 8px;
}

.outdoor-layout-preview p {
    margin: 0;
    color: #334155;
}

.outdoor-photo-button {
    border: 0;
    border-radius: 8px;
    background: #f8fafc;
    cursor: zoom-in;
    overflow: hidden;
    padding: 0;
}

.outdoor-photo-button img {
    display: block;
    width: 100%;
    max-height: 280px;
    object-fit: contain;
}

.legend {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 32px;
    width: fit-content;
    max-width: 94%;
    margin: 22px auto;
    border: 1px solid rgba(205, 232, 221, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #f8fafc;
    padding: 14px 24px;
}

.legend div {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
}

.layout-status-bar {
    width: min(980px, 94%);
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border: 1px solid rgba(34, 197, 94, 0.52);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(248, 255, 251, 0.98), rgba(230, 255, 240, 0.94));
    color: #0f172a;
    padding: 16px 20px;
    box-shadow: 0 16px 34px rgba(5, 18, 24, 0.2);
}

.layout-status-copy {
    display: grid;
    gap: 4px;
}

.layout-status-copy strong {
    color: #064e3b;
    font-size: 22px;
}

.status-pill-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.status-pill {
    border-radius: 999px;
    display: inline-block;
    font-size: 14px;
    font-weight: 900;
    padding: 9px 13px;
}

.available-pill {
    background: #22c55e;
    box-shadow: 0 8px 18px rgba(34, 197, 94, 0.28);
    color: #ffffff;
}

.booked-pill {
    background: #ef4444;
    box-shadow: 0 8px 18px rgba(239, 68, 68, 0.24);
    color: #ffffff;
}

.reserved-pill {
    background: #facc15;
    box-shadow: 0 8px 18px rgba(250, 204, 21, 0.25);
    color: #111827;
}

.available-box,
.booked-box,
.reserved-box {
    width: 22px;
    height: 22px;
    display: inline-block;
    border-radius: 5px;
}

.available-box,
.available {
    background: #22c55e;
}

.booked-box,
.booked {
    background: #c2414b;
}

.reserved-box,
.reserved {
    background: #e7b73d;
}

.parking-container {
    width: 96%;
    margin: 0 auto 48px;
    background: #fbfffc;
    border: 1px solid rgba(187, 247, 208, 0.72);
    border-radius: 14px;
    padding: 30px;
    box-shadow: 0 20px 42px rgba(5, 18, 24, 0.2);
}

.row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 34px;
}

.side-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 34px;
}

.left-column,
.right-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.middle {
    flex: 1;
}

.parking-space {
    width: 106px;
    height: 54px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.14);
    transition: transform 0.15s ease, filter 0.15s ease;
}

.parking-space.reserved {
    color: #111827;
}

.parking-space:hover {
    transform: scale(1.04);
    filter: brightness(1.04);
}

.parking-space.selected {
    outline: 4px solid #0e7490;
    outline-offset: 3px;
}

.layout-payment-panel {
    width: min(980px, 94%);
    margin: 0 auto 32px;
    background: #fbfffc;
    border: 1px solid rgba(187, 247, 208, 0.72);
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.16);
}

.layout-payment-panel h2 {
    margin: 0 0 6px;
    font-size: 28px;
}

.layout-payment-panel p {
    margin: 0;
}

.layout-payment-panel dl {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 22px 0;
}

.layout-payment-panel dl div {
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    padding: 16px;
}

.layout-payment-panel dt {
    color: #475569;
    font-size: 14px;
    font-weight: 800;
}

.layout-payment-panel dd {
    color: #0f172a;
    font-size: 26px;
    font-weight: 900;
    margin: 8px 0 0;
}

.layout-payment-panel .payment-note {
    color: #334155;
    margin-bottom: 18px;
}

.continue-booking-btn {
    display: inline-block;
    background: #22c55e;
    color: white;
    text-decoration: none;
    padding: 14px 22px;
    border-radius: 8px;
    font-weight: 800;
}

.continue-booking-btn:hover {
    background: #16a34a;
}

.modal {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 100;
    overflow: auto;
    background: rgba(0, 0, 0, 0.9);
    padding: 72px 24px;
}

.modal-content {
    display: block;
    width: min(1200px, 96vw);
    margin: auto;
    border-radius: 8px;
}

.modal-layout-frame {
    width: min(1200px, 96vw);
    margin: auto;
}

.modal-layout-frame h2 {
    color: white;
    font-size: 28px;
    margin: 0 0 18px;
    text-align: center;
}

.zoom-controls {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.zoom-controls button {
    border: 0;
    border-radius: 8px;
    background: white;
    color: #0f172a;
    cursor: pointer;
    font-weight: 800;
    padding: 10px 18px;
}

.modal-image-wrap {
    max-height: 76vh;
    overflow: auto;
    border-radius: 8px;
}

.close {
    position: fixed;
    top: 18px;
    right: 28px;
    border: 0;
    background: transparent;
    color: white;
    font-size: 42px;
    cursor: pointer;
}

.form-page,
.admin-page {
    min-height: calc(100vh - 58px);
    background:
        linear-gradient(rgba(12, 28, 45, 0.82), rgba(12, 28, 45, 0.82)),
        url("/image/admin-bg.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 46px 20px;
}

.form-page {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.login-card,
.booking-card {
    width: min(650px, 100%);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    padding: 42px;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
}

.login-card {
    width: min(450px, 100%);
    text-align: center;
}

.login-card h1,
.booking-card h1 {
    color: white;
    text-align: center;
    font-size: 38px;
    line-height: 1.1;
    margin: 0 0 26px;
}

.login-card h2,
.booking-card h3 {
    color: white;
}

.booking-card h3 {
    margin: 24px 0 12px;
    font-size: 22px;
}

.login-card input,
.booking-card input,
.booking-card select,
.booking-card textarea {
    width: 100%;
    padding: 16px;
    margin-bottom: 16px;
    border: 0;
    border-radius: 8px;
    outline: 0;
}

.readonly-field {
    width: 100%;
    padding: 16px;
    margin-bottom: 16px;
    border: 0;
    border-radius: 8px;
    background: white;
    color: #111827;
    font-weight: 700;
}

.booking-card button,
.login-card button {
    width: 100%;
    padding: 16px;
    border: 0;
    border-radius: 8px;
    background: #198754;
    color: white;
    font-size: 20px;
    font-weight: 800;
    cursor: pointer;
}

.booking-card button:hover,
.login-card button:hover {
    background: #157347;
}

.booking-card button:disabled,
.login-card button:disabled {
    background: #94a3b8;
    cursor: not-allowed;
}

.parking-info,
.alert-box {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 22px;
    text-align: center;
    font-size: 20px;
}

.parking-info {
    background: #0d6efd;
    color: white;
}

.alert-box.error {
    background: #dc3545;
    color: white;
}

.alert-box.success {
    background: #198754;
    color: white;
}

.back-btn {
    display: block;
    text-align: center;
    margin-top: 18px;
    padding: 16px;
    background: #6c757d;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 800;
}

.back-btn:hover {
    background: #565e64;
}

.terms {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    margin: 20px 0;
}

.terms input {
    width: auto;
    margin: 0;
}

.terms-panel,
.payment-panel,
.custom-fields-panel,
.credentials-panel {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 8px;
    color: #111827;
    margin: 24px 0;
    padding: 22px;
}

.terms-panel h3,
.payment-panel h3,
.custom-fields-panel h3,
.credentials-panel h3 {
    color: #111827;
    margin-top: 0;
}

.payment-panel h3:not(:first-child) {
    margin-top: 22px;
}

.payment-panel p {
    margin: 0 0 10px;
}

.payment-panel dl {
    display: grid;
    gap: 10px;
    margin: 0;
}

.payment-panel dl div,
.credentials-panel dl div,
.detail-list div {
    display: grid;
    grid-template-columns: minmax(150px, 0.8fr) 1.2fr;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.12);
}

.payment-panel dt,
.credentials-panel dt,
.detail-list dt {
    font-weight: 800;
}

.payment-panel dd,
.credentials-panel dd,
.detail-list dd {
    margin: 0;
}

.custom-fields-panel input {
    margin-bottom: 12px;
}

.credentials-panel p {
    color: #334155;
    margin-bottom: 0;
}

.detail-list {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 8px;
    color: #111827;
    margin: 8px 0 18px;
    padding: 14px 18px;
}

.payment-note,
.field-note {
    color: #f8fafc;
    font-size: 15px;
    margin: -4px 0 14px;
}

.payment-panel .payment-note {
    color: #334155;
    margin: 12px 0 0;
}

.selected-application-bay {
    margin-top: 0;
}

.change-bay-link {
    display: inline-block;
    margin-top: 14px;
    color: #0d6efd;
    font-weight: 800;
    text-decoration: none;
}

.change-bay-link:hover {
    text-decoration: underline;
}

.login-subtitle {
    color: white;
    margin: -8px 0 22px;
}

.terms-panel ol {
    margin: 0;
    padding-left: 22px;
}

.terms-panel li {
    margin-bottom: 12px;
}

.terms-panel ul {
    margin-top: 8px;
    padding-left: 20px;
}

.terms-panel .terms {
    color: #111827;
    font-weight: 700;
    margin-bottom: 0;
}

.success-card p,
.application-detail p {
    color: white;
    font-size: 19px;
    margin: 8px 0 18px;
}

.container {
    width: min(1500px, 96%);
    margin: auto;
}

.top-bar {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 34px;
}

.top-bar h1 {
    color: white;
    font-size: 38px;
    text-align: center;
    margin: 0;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.role-banner {
    width: fit-content;
    margin: -18px auto 28px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 8px;
    background: rgba(12, 28, 45, 0.82);
    color: white;
    font-weight: 800;
    padding: 10px 16px;
}

.inline-role-banner {
    width: auto;
    margin: 0 0 22px;
    background: #0c1c2d;
}

.settings-manager h2 {
    color: #111827;
    margin: 0 0 18px;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.settings-grid label {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #f8fafc;
    color: #111827;
    font-weight: 800;
    padding: 12px 14px;
}

.settings-grid input {
    width: 18px;
    height: 18px;
}

.settings-save {
    min-width: 190px;
}

.settings-note {
    color: #334155;
    margin: -8px 0 16px;
}

.custom-requirement-form {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto auto;
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
}

.custom-requirement-form input,
.settings-table input[type="text"],
.settings-table input:not([type]) {
    width: 100%;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    padding: 12px 14px;
}

.custom-requirement-form label,
.inline-check {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #111827;
    font-weight: 800;
    white-space: nowrap;
}

.settings-table {
    margin-bottom: 22px;
}

.notification-strip {
    width: fit-content;
    max-width: 100%;
    margin: -16px auto 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 8px;
    background: rgba(12, 28, 45, 0.82);
    color: white;
    font-weight: 800;
    padding: 10px 14px;
}

.notification-strip span {
    display: inline-block;
    padding: 4px 8px;
}

.parking-admin-form select,
.parking-admin-form input[type="file"] {
    width: 100%;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    padding: 12px 14px;
}

.parking-admin-filter {
    display: flex;
    justify-content: flex-end;
    margin: -8px 0 16px;
}

.parking-admin-filter label {
    display: grid;
    gap: 6px;
    color: #334155;
    font-weight: 800;
}

.parking-admin-filter select {
    min-width: 220px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    padding: 10px 12px;
}

.settings-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}

.settings-card {
    border: 1px solid #d8ece4;
    border-radius: 12px;
    background: #fbfffc;
    padding: 22px;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

.settings-card + .settings-card {
    margin-top: 18px;
}

.settings-card-grid .settings-card + .settings-card {
    margin-top: 0;
}

.settings-card h2 {
    margin: 4px 0 16px;
}

.settings-card-wide {
    margin-top: 18px;
}

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

.section-kicker {
    color: #0f766e;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.compact-field {
    display: grid;
    gap: 6px;
    color: #334155;
    font-weight: 800;
}

.compact-field select {
    min-width: 220px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    padding: 10px 12px;
}

.subtle-count {
    border-radius: 999px;
    background: #e8f8ef;
    color: #166534;
    font-weight: 900;
    padding: 8px 12px;
    white-space: nowrap;
}

.responsive-table {
    width: 100%;
    overflow-x: auto;
}

.table-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.danger-action {
    margin-left: 8px;
}

.account-create-card {
    margin-bottom: 18px;
}

.admin-layout-overview {
    display: grid;
    grid-template-columns: minmax(280px, 0.72fr) minmax(320px, 1.28fr);
    gap: 18px;
    margin: 8px 0 24px;
}

.admin-layout-photo,
.admin-layout-grid {
    border: 1px solid #d8ece4;
    border-radius: 10px;
    background: #f7fffb;
    padding: 14px;
}

.admin-layout-photo {
    display: grid;
    place-items: center;
}

.admin-layout-photo img {
    width: 100%;
    max-height: 360px;
    object-fit: contain;
    border-radius: 8px;
}

.admin-layout-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
    align-content: start;
    gap: 10px;
    max-height: 420px;
    overflow: auto;
}

.admin-bay-chip {
    border: 0;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    display: grid;
    gap: 2px;
    min-height: 58px;
    padding: 9px 10px;
    text-align: center;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.admin-bay-chip span {
    font-weight: 900;
}

.admin-bay-chip small {
    font-size: 12px;
    font-weight: 800;
    opacity: 0.92;
}

.admin-bay-chip.available {
    background: #22c55e;
}

.admin-bay-chip.booked {
    background: #dc3545;
}

.admin-bay-chip.reserved {
    background: #ffc107;
    color: #111827;
}

.bay-text-button {
    border: 0;
    background: transparent;
    color: #0f172a;
    cursor: pointer;
    font-weight: 800;
    padding: 0;
    text-align: left;
}

.bay-text-button:hover {
    color: #0f6f8d;
    text-decoration: underline;
}

.bay-edit-panel {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.bay-edit-panel input {
    min-width: 190px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 10px 12px;
}

.logout-btn {
    position: absolute;
    right: 0;
    background: #dc3545;
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
}

.stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(150px, 1fr));
    gap: 18px;
    margin-bottom: 34px;
}

.card {
    display: block;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.16);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    padding: 28px 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
    cursor: pointer;
}

.card.active-card {
    outline: 3px solid rgba(255, 255, 255, 0.86);
    outline-offset: 3px;
}

.card h2 {
    font-size: 46px;
    margin: 0 0 8px;
}

.card p {
    margin: 0;
    font-size: 18px;
}

.available-card {
    border-left: 8px solid #22c55e;
}

.booked-card {
    border-left: 8px solid #dc3545;
}

.reserved-card {
    border-left: 8px solid #ffc107;
}

.table-container {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 8px;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    overflow-x: auto;
}

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

.table-heading h2 {
    margin: 0;
}

.top-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.booking-table {
    width: 100%;
    border-collapse: collapse;
}

.booking-table th {
    background: #0f6f8d;
    color: white;
    padding: 15px;
    white-space: nowrap;
}

.booking-table td {
    padding: 15px;
    border-bottom: 1px solid #e5e7eb;
    background: white;
    vertical-align: middle;
}

.available-status,
.booked-status,
.reserved-status {
    display: inline-block;
    padding: 7px 14px;
    border-radius: 8px;
    font-weight: 700;
    white-space: nowrap;
}

.available-status {
    background: #22c55e;
    color: white;
}

.booked-status {
    background: #dc3545;
    color: white;
}

.reserved-status {
    background: #ffc107;
    color: #111827;
}

.application-btn,
.export-btn,
.approve-btn,
.reject-btn,
.cancel-btn,
.notify-btn {
    display: inline-block;
    border: 0;
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: 700;
    margin: 3px;
    cursor: pointer;
    white-space: nowrap;
}

.application-btn {
    background: #0d6efd;
}

.export-btn {
    background: #16a34a;
}

.approve-btn {
    background: #22c55e;
}

.approve-btn:hover,
.export-btn:hover,
.whatsapp-btn:hover {
    background: #16a34a;
}

.reserved-action-btn {
    display: inline-block;
    border: 0;
    color: #111827;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: 700;
    margin: 3px;
    cursor: pointer;
    white-space: nowrap;
    background: #ffc107;
}

.reject-btn {
    background: #dc3545;
}

.cancel-btn {
    background: #6c757d;
}

.notify-btn {
    background: #0d6efd;
}

.whatsapp-btn {
    background: #22c55e;
}

.reject-panel {
    display: grid;
    gap: 8px;
    min-width: 240px;
}

.reject-comment {
    width: 100%;
    min-height: 84px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 10px;
    resize: vertical;
}

.inline-error {
    color: #b91c1c;
    font-size: 14px;
    font-weight: 800;
}

.notify-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.detail-actions {
    margin-bottom: 18px;
}

.account-manager h2 {
    margin: 0 0 18px;
}

.account-form {
    display: grid;
    grid-template-columns: repeat(5, minmax(140px, 1fr)) auto;
    gap: 12px;
    margin-bottom: 26px;
}

.account-form input,
.reset-password-panel input {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 11px;
}

.reset-password-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 260px;
}

#blazor-error-ui {
    display: none;
}

@media (max-width: 1000px) {
    .stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .settings-card-grid {
        grid-template-columns: 1fr;
    }

    .admin-layout-overview {
        grid-template-columns: 1fr;
    }

    .side-row {
        flex-direction: column;
    }

    .left-column,
    .right-column {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .top-bar {
        flex-direction: column;
        gap: 16px;
    }

    .logout-btn {
        position: static;
    }
}

@media (max-width: 700px) {
    .site-nav {
        align-items: flex-start;
        flex-direction: column;
    }

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

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

    .layout-status-bar,
    .settings-card-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .parking-container,
    .booking-card,
    .login-card,
    .table-container {
        padding: 20px;
    }

    .parking-space {
        width: 92px;
        height: 50px;
        font-size: 12px;
    }

    .layout-payment-panel dl {
        grid-template-columns: 1fr;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .table-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .account-form {
        grid-template-columns: 1fr;
    }
}
