* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --success: #16a34a;
    --warning: #ca8a04;
    --danger: #dc2626;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-600: #4b5563;
    --gray-800: #1f2937;
    --gray-900: #111827;
}

html, body {
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--gray-50);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
header {
    background: var(--primary);
    color: white;
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

header nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

header .nav-links a {
    color: white;
    text-decoration: none;
    margin-left: 1.5rem;
    opacity: 0.9;
}

header .nav-links a:hover {
    opacity: 1;
}

/* Main content */
main {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
    flex: 1;
    width: 100%;
}

/* Footer */
footer {
    background: var(--gray-800);
    color: var(--gray-300);
    text-align: center;
    padding: 2rem 1rem;
    font-size: 0.875rem;
}

/* Hero / Index page */
.hero {
    text-align: center;
}

.time-display {
    margin-bottom: 2rem;
}

.clock {
    font-size: 3rem;
    font-weight: bold;
    color: var(--gray-900);
    display: block;
}

.status {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    background: var(--gray-200);
    color: var(--gray-600);
    margin-top: 0.5rem;
}

.status.active {
    background: var(--success);
    color: white;
}

/* Duty card */
.duty-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.duty-card.active {
    border: 3px solid var(--success);
}

.duty-card h2 {
    color: var(--gray-600);
    font-size: 1rem;
    font-weight: normal;
    margin-bottom: 1rem;
}

.pharmacy-name {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.pharmacy-info .location {
    font-size: 1.25rem;
    color: var(--gray-600);
}

.pharmacy-info .address,
.pharmacy-info .phone {
    margin-top: 0.5rem;
}

.pharmacy-info .phone a {
    color: var(--primary);
    font-weight: 500;
}

.actions {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

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

.btn-secondary {
    background: var(--gray-200);
    color: var(--gray-800);
}

.btn-secondary:hover {
    background: var(--gray-300);
}

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

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-small {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-nav {
    background: transparent;
    color: var(--primary);
    padding: 0.5rem 1rem;
}

/* Map */
.map {
    height: 300px;
    border-radius: 1rem;
    margin: 2rem 0;
    overflow: hidden;
}

/* Next duty */
.next-duty {
    background: var(--gray-100);
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 2rem 0;
}

.next-duty h3 {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 0.25rem;
}

.next-duty a {
    color: var(--primary);
    text-decoration: none;
}

.cta {
    margin-top: 2rem;
}

/* No data */
.no-data {
    text-align: center;
    padding: 3rem;
    color: var(--gray-600);
}

/* Schedule page */
.schedule-page {
    max-width: 1000px;
    margin: 0 auto;
}

.month-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.month-nav h1 {
    text-transform: capitalize;
}

.schedule-table-wrapper {
    overflow-x: auto;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.schedule-table th,
.schedule-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.schedule-table th {
    background: var(--gray-100);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.schedule-table tr:hover {
    background: var(--gray-50);
}

.schedule-table tr.today {
    background: #dbeafe;
}

.schedule-table .pharmacy a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.schedule-table .date {
    font-weight: 500;
}

.schedule-table .day-name {
    color: var(--gray-600);
    font-size: 0.875rem;
}

/* Pharmacy page */
.pharmacy-page {
    max-width: 600px;
    margin: 0 auto;
}

.pharmacy-page h1 {
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.pharmacy-details p {
    margin-bottom: 0.5rem;
}

.upcoming-duties {
    margin-top: 2rem;
    background: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.upcoming-duties h2 {
    font-size: 1rem;
    color: var(--gray-600);
    margin-bottom: 1rem;
}

.upcoming-duties ul {
    list-style: none;
}

.upcoming-duties li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
}

.upcoming-duties li:last-child {
    border-bottom: none;
}

.back-link {
    margin-top: 2rem;
}

/* Error page */
.error-page {
    text-align: center;
    padding: 4rem 1rem;
}

.error-page h1 {
    font-size: 6rem;
    color: var(--gray-300);
}

/* Admin styles */
.admin-body {
    background: var(--gray-100);
}

.login-container {
    max-width: 400px;
    margin: 4rem auto;
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.login-container h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary);
}

.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

.admin-header {
    background: white;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.admin-header h1 {
    color: var(--primary);
    font-size: 1.5rem;
}

.admin-header nav a {
    margin-left: 1.5rem;
    color: var(--gray-600);
    text-decoration: none;
}

.admin-header nav a:hover,
.admin-header nav a.active {
    color: var(--primary);
}

/* Forms */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 500;
    color: var(--gray-600);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.375rem;
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

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

.form-actions {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
}

/* Admin sections */
.add-pharmacy,
.pharmacy-list {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
}

.add-pharmacy h2,
.pharmacy-list h2 {
    margin-bottom: 1rem;
    color: var(--gray-800);
}

/* Admin table */
.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.admin-table th {
    font-weight: 600;
    color: var(--gray-600);
    font-size: 0.875rem;
}

.admin-table tr.inactive {
    opacity: 0.5;
}

.admin-table .actions {
    display: flex;
    gap: 0.5rem;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-success {
    background: #dcfce7;
    color: var(--success);
}

.badge-warning {
    background: #fef9c3;
    color: var(--warning);
}

.badge-danger {
    background: #fee2e2;
    color: var(--danger);
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.alert-error {
    background: #fee2e2;
    color: var(--danger);
}

/* Aliases section */
.aliases-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}

.aliases-section h3 {
    margin-bottom: 0.5rem;
}

.help-text {
    color: var(--gray-600);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.alias-list {
    list-style: none;
    margin-bottom: 1rem;
}

.alias-list li {
    padding: 0.5rem;
    background: var(--gray-100);
    border-radius: 0.25rem;
    margin-bottom: 0.25rem;
}

.alias-form .form-row {
    display: flex;
    gap: 0.5rem;
}

.alias-form input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.375rem;
}

/* Logs page */
.logs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

/* Daytime duty styles */
.duty-card.daytime {
    border-left: 4px solid #ff9800;
}

.duty-card.daytime.active {
    border: 3px solid #ff9800;
}

.daytime-pharmacies {
    display: grid;
    gap: 1.5rem;
}

.daytime-pharmacies .pharmacy-info {
    padding: 1rem;
    background: var(--gray-50);
    border-radius: 0.5rem;
}

.daytime-pharmacies h3 {
    color: var(--primary);
    margin-bottom: 0.25rem;
}

/* Schedule table duty type */
.schedule-table tr.sunday {
    background: #fff3e0;
}

.schedule-table tr.sunday.today {
    background: #ffe0b2;
}

.schedule-table tr.daytime-row {
    background: #fff8e1;
}

.schedule-table .duty-type {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.schedule-table .duty-type.night {
    color: #1a237e;
}

.schedule-table .duty-type.daytime {
    color: #e65100;
}

/* Schedule legend */
.schedule-legend {
    margin-top: 1.5rem;
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.schedule-legend .legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.schedule-legend .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.schedule-legend .dot.night {
    background: #1a237e;
}

.schedule-legend .dot.daytime {
    background: #ff9800;
}

/* Landing page */
.landing-page {
    padding: 4rem 1rem;
}

.landing-page h1 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.landing-subtitle {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: 3rem;
}

.city-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.btn-city {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    padding: 1.5rem 2.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 1rem;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-city:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Admin city picker */
.city-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.city-card {
    display: block;
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    text-decoration: none;
    text-align: center;
    border: 2px solid var(--gray-200);
    transition: all 0.2s;
}

.city-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.city-card h3 {
    color: var(--primary);
    font-size: 1.25rem;
}

/* Admin calendar (moved from inline styles) */
.admin-month-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 20px;
}

.admin-month-nav a {
    font-size: 24px;
    text-decoration: none;
    color: #007bff;
    padding: 5px 15px;
}

.admin-month-nav h2 {
    margin: 0;
    min-width: 200px;
    text-align: center;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    background: #ddd;
    border: 1px solid #ddd;
}

.day-header {
    background: #333;
    color: white;
    padding: 10px;
    text-align: center;
    font-weight: bold;
}

.calendar-day {
    background: white;
    min-height: 100px;
    padding: 5px;
    position: relative;
}

.calendar-day a {
    display: block;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.calendar-day.other-month {
    background: #f5f5f5;
    opacity: 0.6;
}

.calendar-day.today {
    background: #e3f2fd;
}

.calendar-day.sunday {
    background: #fff3e0;
}

.calendar-day.sunday.today {
    background: #ffe0b2;
}

.day-num {
    font-weight: bold;
    font-size: 14px;
}

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

.duty.night {
    background: #1a237e;
    color: white;
}

.duty.daytime {
    background: #ff9800;
    color: white;
}

.no-duty {
    color: #ccc;
    font-size: 12px;
    margin-top: 10px;
}

.admin-legend {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    justify-content: center;
}

.admin-legend .legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 3px;
}

/* Admin schedule day (moved from inline styles) */
.day-header-info {
    text-align: center;
    margin-bottom: 30px;
}

.day-header-info h2 {
    margin: 0;
}

.day-header-info .day-name {
    color: #666;
    font-size: 18px;
}

.schedule-section {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.schedule-section h3 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.schedule-section.night h3 {
    color: #1a237e;
}

.schedule-section.daytime h3 {
    color: #e65100;
}

.current-assignment {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.current-assignment .pharmacy-name {
    font-weight: bold;
    font-size: 16px;
}

.assignment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}

.assignment-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #f5f5f5;
    margin-bottom: 5px;
    border-radius: 5px;
}

.sunday-note {
    background: #fff3e0;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    color: #e65100;
}

.admin-back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #007bff;
    text-decoration: none;
}

.delete-section {
    margin-top: 20px;
    text-align: center;
}

/* Admin table scroll wrapper */
.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Hamburger menu button - hidden on desktop */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gray-600);
    border-radius: 2px;
    transition: all 0.3s;
}

.admin-header.nav-open .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.admin-header.nav-open .hamburger span:nth-child(2) {
    opacity: 0;
}

.admin-header.nav-open .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Calendar list view - hidden on desktop */
.calendar-list {
    display: none;
}

.calendar-list-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background: white;
    border-bottom: 1px solid var(--gray-200);
    text-decoration: none;
    color: inherit;
    gap: 1rem;
    min-height: 52px;
}

.calendar-list-item:first-child {
    border-radius: 0.5rem 0.5rem 0 0;
}

.calendar-list-item:last-child {
    border-radius: 0 0 0.5rem 0.5rem;
    border-bottom: none;
}

.calendar-list-item:active {
    background: var(--gray-50);
}

.calendar-list-item.today {
    background: #e3f2fd;
}

.calendar-list-item.sunday {
    background: #fff3e0;
}

.calendar-list-item.sunday.today {
    background: #ffe0b2;
}

.calendar-list-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 44px;
}

.calendar-list-date .day-num {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
}

.calendar-list-date .day-abbr {
    font-size: 0.7rem;
    color: var(--gray-600);
    text-transform: uppercase;
}

.calendar-list-duty {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.calendar-list-duty .duty {
    margin-top: 0;
    font-size: 0.8rem;
    padding: 3px 8px;
}

.calendar-list-duty .no-duty {
    margin-top: 0;
    font-size: 0.85rem;
}

/* ============ Responsive ============ */

@media (max-width: 768px) {
    /* Public pages */
    .clock {
        font-size: 2rem;
    }

    .pharmacy-name {
        font-size: 1.5rem;
    }

    .month-nav {
        flex-direction: column;
        text-align: center;
    }

    /* Hamburger menu */
    .hamburger {
        display: flex;
    }

    .admin-header {
        flex-direction: row;
        flex-wrap: wrap;
        padding: 0.75rem 1rem;
        gap: 0;
        align-items: center;
    }

    .admin-header h1 {
        font-size: 1.1rem;
        flex: 1;
    }

    .admin-header nav {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0.25rem;
        padding-top: 0.75rem;
        margin-top: 0.75rem;
        border-top: 1px solid var(--gray-200);
    }

    .admin-header.nav-open nav {
        display: flex;
    }

    .admin-header nav a {
        margin: 0;
        padding: 0.65rem 1rem;
        font-size: 0.95rem;
        background: var(--gray-50);
        border-radius: 0.375rem;
        text-align: left;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .admin-header nav a:hover,
    .admin-header nav a.active {
        background: var(--primary);
        color: white;
    }

    /* Admin container */
    .admin-container {
        padding: 0.5rem;
    }

    /* Forms */
    .form-row {
        grid-template-columns: 1fr;
    }

    .pharmacy-form .form-row,
    .alias-form .form-row {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
        text-align: center;
        min-height: 44px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevents iOS zoom on focus */
        min-height: 44px;
    }

    /* Touch-friendly buttons */
    .btn-small {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Tables - card layout on mobile */
    .admin-table {
        font-size: 0.875rem;
    }

    .admin-table thead {
        display: none;
    }

    .admin-table tbody tr {
        display: block;
        background: white;
        border: 1px solid var(--gray-200);
        border-radius: 0.5rem;
        padding: 0.75rem;
        margin-bottom: 0.75rem;
    }

    .admin-table tbody tr.inactive {
        opacity: 0.6;
    }

    .admin-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.4rem 0;
        border-bottom: 1px solid var(--gray-100);
    }

    .admin-table td:last-child {
        border-bottom: none;
        padding-top: 0.75rem;
    }

    .admin-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--gray-600);
        font-size: 0.8rem;
        flex-shrink: 0;
        margin-right: 1rem;
    }

    .admin-table td.actions {
        justify-content: flex-end;
        gap: 0.75rem;
    }

    /* Sections */
    .add-pharmacy,
    .pharmacy-list {
        padding: 1rem;
    }

    /* Calendar - switch to list view on mobile */
    .calendar-grid {
        display: none;
    }

    .calendar-list {
        display: block;
        border: 1px solid var(--gray-200);
        border-radius: 0.5rem;
        overflow: hidden;
    }

    .admin-month-nav {
        gap: 10px;
    }

    .admin-month-nav a {
        font-size: 20px;
        padding: 10px 15px;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .admin-month-nav h2 {
        min-width: auto;
        font-size: 1.1rem;
    }

    .admin-legend {
        flex-wrap: wrap;
        gap: 10px;
        font-size: 0.8rem;
    }

    /* Schedule day page */
    .schedule-section {
        padding: 1rem;
    }

    .schedule-section .form-row {
        flex-direction: column;
        gap: 0.75rem;
    }

    .schedule-section .form-row select {
        width: 100%;
        font-size: 16px;
        min-height: 44px;
    }

    .schedule-section .form-row .btn {
        width: 100%;
        min-height: 44px;
    }

    .assignment-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .assignment-list li form {
        align-self: flex-end;
    }

    .assignment-list li .btn-small {
        min-height: 44px;
    }

    /* City grid */
    .city-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .city-card {
        padding: 1.25rem;
        min-height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Login */
    .login-container {
        margin: 2rem 0.5rem;
    }

    .login-container .btn {
        width: 100%;
        min-height: 44px;
    }

    /* Landing page */
    .landing-page {
        padding: 2rem 1rem;
    }

    .landing-page h1 {
        font-size: 1.75rem;
    }

    .btn-city {
        min-width: unset;
        width: 100%;
        min-height: 56px;
    }

    /* Delete section */
    .delete-section .btn {
        width: 100%;
        min-height: 44px;
    }
}

@media (max-width: 380px) {
    .admin-header h1 {
        font-size: 0.95rem;
    }
}
