.home-page {
    padding-top: 32px;
}

.home-logo {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -1px;
    margin-bottom: 8px;
}

.home-tagline {
    text-align: center;
    font-size: 18px;
    color: var(--secondary-text-color);
    line-height: 1.6;
    margin-bottom: 22px;
}

.field-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
}

.field-spacing {
    height: 14px;
}

.button-spacing {
    height: 18px;
}

.home-info {
    margin-top: 32px;
    text-align: center;
    line-height: 1.7;
    color: var(--secondary-text-color);
    font-size: 15px;
}

.home-search-card {
    padding: 18px;
    margin-bottom: 28px;
}

.search-button {
    margin-top: 4px;
}

/* =====================================
   Facility Page
   ===================================== */

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.facility-title {
    margin-bottom: 8px;
    font-size: 30px;
    line-height: 1.2;
    color: var(--primary-color);
}

.facility-address {
    margin-bottom: 10px;
    color: var(--secondary-text-color);
    font-size: 16px;
}

.service-button {
    width: 100%;
    min-height: 56px;
    margin-bottom: 12px;
    padding: 16px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: none;
    border-radius: 12px;
    background: #F8FAFC;
    cursor: pointer;
    font-size: 17px;
    text-align: left;
    transition: background-color .2s ease;
}

    .service-button:hover {
        background: #EEF4FF;
    }

    .service-button:last-child {
        margin-bottom: 0;
    }

.services-container {
    display: flex;
    flex-direction: column;
}

/* ==========================================
   Services
   ========================================== */

.service-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px;
    margin-bottom: 12px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color .15s ease;
}

    .service-card:hover {
        background: #f9fafb;
    }

    .service-card:active {
        background: #eef2ff;
    }

.service-name {
    font-size: 17px;
    font-weight: 600;
    color: #374151;
}

.service-arrow {
    font-size: 22px;
    color: #9ca3af;
    font-weight: bold;
}

/* ==========================================
   Queue Page
   ========================================== */

.queue-header {
    margin-bottom: 10px;
}

.last-updated {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin-top: 12px;
    margin-bottom: 18px;
    padding: 10px 14px;
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    border-radius: 10px;
    color: #1D4ED8;
    text-align: left;
}

.last-updated-label {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
    white-space: nowrap;
}

.last-updated-value {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
}

.queue-status {
    display: none;
    margin: 10px 0 18px;
    font-size: 14px;
    font-weight: 600;
    color: #4B5563;
}

    .queue-status.visible {
        display: block;
    }

.queue-cards {
    display: flex;
    gap: 12px;
    margin: 22px 0;
}

.queue-card {
    flex: 1;
    min-width: 0;
    background: #ffffff;
    border: 2px solid #22c55e;
    border-radius: 12px;
    padding: 18px 12px;
    text-align: center;
}

.queue-card.next {
        border-color: #F59E0B;
    }

.queue-card.next .card-title {
            color: #F59E0B;
        }

.queue-card.paused {
        border-color: #DC2626;
        background: #FEF2F2;
    }

.card-title {
    margin-bottom: 14px;
    font-size: 14px;
    font-weight: 700;
    color: #16a34a;
}

.queue-card.paused .card-title {
    color: #DC2626;
}

.card-token {
    font-size: 42px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 12px;
}

.card-patient {
    font-size: 17px;
    font-weight: 600;
    color: #374151;
}

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

    .queue-table th {
        text-align: left;
        padding: 12px 10px;
        border-bottom: 2px solid #e5e7eb;
        font-size: 14px;
    }

    .queue-table td {
        padding: 12px 10px;
        border-bottom: 1px solid #f3f4f6;
        font-size: 16px;
    }

    .queue-table tr:last-child td {
        border-bottom: none;
    }

/* ==========================================
   Search Results
   ========================================== */

.search-result-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px;
    margin-bottom: 12px;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color .15s ease;
}

    .search-result-card:hover {
        background: #f9fafb;
    }

    .search-result-card:active {
        background: #eef2ff;
    }

.search-result-name {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 4px;
}

.search-result-address {
    color: #6b7280;
    font-size: 15px;
}

.search-result-arrow {
    font-size: 22px;
    color: #9ca3af;
    font-weight: bold;
}

/* ==========================================
   No Search Results
   ========================================== */

.no-results {
    display: none;
    margin-top: 16px;
    padding: 16px;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    background: #F9FAFB;
    text-align: center;
}

    .no-results.visible {
        display: block;
    }

.no-results-icon {
    font-size: 26px;
    margin-bottom: 12px;
}

.no-results-title {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 18px;
}

.no-results-text {
    color: #4B5563;
    line-height: 1.45;
    margin-bottom: 6px;
}

.no-results-footer {
    margin-top: 10px;
    color: #6B7280;
    line-height: 1.5;
}

.card-token-text {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
}

.queue-status-title {
    color: #DC2626;
    font-weight: 700;
}

/* ==========================================
   Today's Queue
   ========================================== */

.current-patient {
    background: #EFF6FF;
    font-weight: 600;
}

    .current-patient td {
        color: #2563EB;
    }

.current-pause {
    background: #FEF3C7;
    font-weight: 600;
}

    .current-pause td {
        color: #B45309;
    }

/* Duration column */

.queue-table th:last-child,
.queue-table td:last-child {
    padding-left: 20px;
    white-space: nowrap;
}

/* Temporary Pause */

.queue-pause td {
    white-space: normal;
    word-break: break-word;
    color: #374151;
    font-weight: 600;
}