:root {
    --color-bg: #f5f7fb;
    --color-text: #111827;
    --color-muted: #6b7280;
    --color-primary: #0f766e;
    --color-primary-dark: #115e59;
    --color-card: #ffffff;
}

* {
    box-sizing: border-box;
}

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

.page {
    min-height: 100vh;
}

.hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding: 48px 24px;
    background:
        radial-gradient(circle at top right, rgba(15, 118, 110, 0.18), transparent 35%),
        linear-gradient(135deg, #ffffff 0%, #e8f5f3 100%);
}

.hero__content {
    max-width: 860px;
    margin: 0 auto;
}

.eyebrow {
    margin: 0 0 16px;
    color: var(--color-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 14px;
}

h1 {
    margin: 0 0 20px;
    font-size: clamp(42px, 8vw, 86px);
    line-height: 0.95;
}

h2 {
    margin-top: 0;
    font-size: 32px;
}

p {
    font-size: 20px;
    line-height: 1.6;
    color: var(--color-muted);
}

.button {
    display: inline-block;
    margin-top: 20px;
    padding: 14px 22px;
    border-radius: 999px;
    background: var(--color-primary);
    color: white;
    text-decoration: none;
    font-weight: 700;
}

.button:hover {
    background: var(--color-primary-dark);
}

.section {
    max-width: 860px;
    margin: 40px auto;
    padding: 32px;
    background: var(--color-card);
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

li {
    margin-bottom: 10px;
    font-size: 18px;
}

.hero__actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.button--secondary {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.button--secondary:hover {
    color: white;
}

.alert {
    margin-top: 24px;
    padding: 18px 20px;
    border-radius: 16px;
    background: #fee2e2;
    color: #991b1b;
    font-weight: 700;
}

.grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.card {
    padding: 22px;
    border-radius: 20px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
}

.card__label {
    display: block;
    margin-bottom: 10px;
    color: var(--color-muted);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.card strong {
    display: block;
    font-size: 22px;
}

.card small {
    display: block;
    margin-top: 6px;
    color: var(--color-muted);
}

.location-list {
    display: grid;
    gap: 14px;
}

.location {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
}

.location span {
    color: var(--color-muted);
}

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

    .location {
        flex-direction: column;
    }
}

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

.admin-login {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at top right, rgba(15, 118, 110, 0.18), transparent 35%),
        linear-gradient(135deg, #ffffff 0%, #e8f5f3 100%);
}

.login-card {
    width: min(100%, 460px);
    padding: 36px;
    border-radius: 28px;
    background: white;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

.login-card h1 {
    font-size: 44px;
    margin-bottom: 24px;
}

.form {
    display: grid;
    gap: 18px;
}

.form label {
    display: grid;
    gap: 8px;
    font-weight: 700;
}

.form input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid #d1d5db;
    font-size: 16px;
}

.form input:focus {
    outline: 3px solid rgba(15, 118, 110, 0.18);
    border-color: var(--color-primary);
}

.form button {
    border: 0;
    cursor: pointer;
    font-size: 16px;
}

.admin-page {
    min-height: 100vh;
    padding: 40px 24px;
}

.admin-header {
    max-width: 1100px;
    margin: 0 auto 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.admin-header h1 {
    font-size: clamp(42px, 6vw, 72px);
}

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

.section--narrow {
    max-width: 620px;
}

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

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

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

.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 10px;
}

.checkbox-label input {
    width: auto;
}

.admin-table-wrap {
    width: 100%;
    overflow-x: auto;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    background: white;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.admin-table th,
.admin-table td {
    padding: 16px 18px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: top;
}

.admin-table th {
    background: #f8fafc;
    color: var(--color-muted);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.admin-table tr:last-child td {
    border-bottom: 0;
}

.muted {
    color: var(--color-muted);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

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

.badge--muted {
    background: #f1f5f9;
    color: #475569;
}

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

.table-actions a {
    color: var(--color-primary);
    font-weight: 800;
    text-decoration: none;
}

.table-actions a:hover {
    text-decoration: underline;
}

.admin-menu-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.admin-menu-card {
    display: grid;
    gap: 8px;
    padding: 22px;
    border-radius: 20px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    color: inherit;
    text-decoration: none;
}

.admin-menu-card strong {
    font-size: 20px;
}

.admin-menu-card span {
    color: var(--color-muted);
}

.admin-menu-card:not(.admin-menu-card--disabled):hover {
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

.admin-menu-card--disabled {
    opacity: 0.55;
}

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

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

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

.location-name-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.location-color-dot {
    width: 16px;
    height: 16px;
    border-radius: 999px;
    border: 2px solid white;
    box-shadow: 0 0 0 1px #d1d5db;
    flex: 0 0 auto;
}

.form input[type="color"] {
    height: 48px;
    padding: 6px;
    cursor: pointer;
}

/* Admin visual refresh */

body {
    background: #f3f6f8;
}

.admin-page {
    min-height: 100vh;
    padding: 36px 24px 64px;
    background:
        radial-gradient(circle at top right, rgba(15, 118, 110, 0.12), transparent 34%),
        linear-gradient(180deg, #f8fafc 0%, #eef4f4 100%);
}

.admin-header {
    max-width: 1180px;
    margin: 0 auto 28px;
    padding: 28px;
    border-radius: 28px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.07);
}

.admin-header h1 {
    margin: 0 0 8px;
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1;
    color: #0f172a;
}

.admin-header p {
    margin: 0;
    color: #64748b;
}

.admin-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.section {
    max-width: 1180px;
    margin: 0 auto 24px;
    padding: 28px;
    border-radius: 28px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
}

.section--narrow {
    max-width: 760px;
}

.section h2 {
    margin-top: 0;
    margin-bottom: 22px;
    color: #0f172a;
    font-size: 28px;
}

.eyebrow {
    margin-bottom: 8px;
    color: #0f766e;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.form {
    display: grid;
    gap: 22px;
}

.form label {
    display: grid;
    gap: 8px;
    color: #0f172a;
    font-size: 15px;
    font-weight: 800;
}

.form input,
.form textarea,
.form select {
    width: 100%;
    min-height: 52px;
    padding: 13px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    background: #ffffff;
    color: #0f172a;
    font-size: 16px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.form input:focus,
.form textarea:focus,
.form select:focus {
    outline: none;
    border-color: #0f766e;
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.14);
    background: #ffffff;
}

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

.checkbox-label {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
}

.checkbox-label input {
    width: 18px;
    min-height: auto;
    height: 18px;
    padding: 0;
}

.color-picker-row {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 52px;
}

.form input[type="color"] {
    width: 58px !important;
    min-width: 58px;
    height: 52px;
    min-height: 52px;
    padding: 4px;
    border-radius: 16px;
    cursor: pointer;
    background: #ffffff;
}

.color-preview {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 20px;
    border-radius: 999px;
    background: #0f766e;
    color: #ffffff;
    border: 2px solid #0f766e;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.button:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(15, 118, 110, 0.18);
}

.button--secondary {
    background: #ffffff;
    color: #0f766e;
    border-color: #99d5ce;
}

.button--secondary:hover {
    background: #ecfdf5;
    color: #0f766e;
}

.alert {
    margin-bottom: 20px;
    padding: 15px 18px;
    border-radius: 18px;
    background: #fee2e2;
    color: #991b1b;
    font-weight: 800;
}

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

.admin-table-wrap {
    overflow-x: auto;
    border-radius: 22px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
}

.admin-table {
    width: 100%;
    min-width: 840px;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 16px 18px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    vertical-align: middle;
}

.admin-table th {
    background: #f8fafc;
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-table tr:last-child td {
    border-bottom: 0;
}

.admin-table tbody tr:hover {
    background: #f8fafc;
}

.location-name-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.location-color-dot {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 1px #cbd5e1;
    flex: 0 0 auto;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

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

.badge--muted {
    background: #f1f5f9;
    color: #475569;
}

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

.table-actions a {
    color: #0f766e;
    font-weight: 900;
    text-decoration: none;
}

.table-actions a:hover {
    text-decoration: underline;
}

.muted {
    color: #94a3b8;
}

@media (max-width: 800px) {
    .admin-header {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .section {
        padding: 22px;
    }
}