:root {
    --tp-blue-primary: #004b93;
    --tp-blue-dark: #002f60;
    --tp-blue-light: #009fe3;
    --tp-blue-hover: #003a73;
    --tp-bg: #f5f8fc;
    --tp-card-bg: #ffffff;
    --tp-text-main: #1e293b;
    --tp-text-muted: #64748b;
    --tp-border: #e2e8f0;
    --tp-success: #10b981;
    --tp-warning: #f59e0b;
}

body {
    background-color: var(--tp-bg);
    color: var(--tp-text-main);
    font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    min-height: 100vh;
}

/* Header & Brand */
.tp-header {
    background: #ffffff;
    border-bottom: 2px solid var(--tp-border);
    box-shadow: 0 4px 15px rgba(0, 75, 147, 0.05);
}

.brand-logo-img {
    max-height: 52px;
    width: auto;
    object-fit: contain;
}

.facility-badge {
    background: linear-gradient(135deg, var(--tp-blue-primary), var(--tp-blue-light));
    color: #ffffff;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 6px 14px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Digital Clock Card */
.live-clock-badge {
    background: #f8fafc;
    border: 1px solid var(--tp-border);
    border-radius: 10px;
    padding: 6px 14px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--tp-blue-primary);
}

/* Stat Cards */
.stat-card {
    background: #ffffff;
    border: 1px solid var(--tp-border);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 75, 147, 0.08);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.stat-icon.active-icon {
    background-color: rgba(16, 185, 129, 0.12);
    color: var(--tp-success);
}

.stat-icon.total-icon {
    background-color: rgba(0, 75, 147, 0.12);
    color: var(--tp-blue-primary);
}

.stat-icon.checkout-icon {
    background-color: rgba(0, 159, 227, 0.12);
    color: var(--tp-blue-light);
}

/* Cards */
.custom-card {
    background: var(--tp-card-bg);
    border: 1px solid var(--tp-border);
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 75, 147, 0.06);
    overflow: hidden;
}

.custom-card-header {
    background: linear-gradient(to right, #ffffff, #f8fbfe);
    border-bottom: 1px solid var(--tp-border);
    padding: 1.1rem 1.5rem;
}

.header-accent-line {
    width: 4px;
    height: 22px;
    background: linear-gradient(to bottom, var(--tp-blue-light), var(--tp-blue-primary));
    border-radius: 4px;
    display: inline-block;
    margin-right: 10px;
}

/* Form Styles */
.form-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.4rem;
}

.form-control, .form-select {
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    padding: 0.65rem 0.95rem;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--tp-blue-light);
    box-shadow: 0 0 0 4px rgba(0, 159, 227, 0.15);
}

.input-group-text {
    background-color: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-right: none;
    border-radius: 10px 0 0 10px;
    color: var(--tp-blue-primary);
}

.input-group .form-control {
    border-left: none;
    border-radius: 0 10px 10px 0;
}

.input-group .form-control:focus {
    border-color: var(--tp-blue-light);
}

/* Automatic Time Pill */
.auto-time-pill {
    background-color: #f1f7fd;
    border: 1px dashed var(--tp-blue-light);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    color: var(--tp-blue-dark);
}

/* Buttons */
.btn-tp-primary {
    background: linear-gradient(135deg, var(--tp-blue-primary), #003a73);
    border: none;
    color: #ffffff;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0, 75, 147, 0.25);
}

.btn-tp-primary:hover {
    background: linear-gradient(135deg, #003a73, #002b54);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 75, 147, 0.35);
}

.btn-tp-accent {
    background: linear-gradient(135deg, var(--tp-blue-light), #007bb5);
    border: none;
    color: #ffffff;
    font-weight: 600;
    padding: 0.7rem 1.25rem;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.btn-tp-accent:hover {
    background: linear-gradient(135deg, #0087c2, #00689b);
    color: #ffffff;
}

/* Badge Styles */
.badge-pill-num {
    background-color: #e0f2fe;
    color: #0369a1;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid #bae6fd;
    display: inline-block;
    letter-spacing: 0.5px;
}

/* Status Indicator */
.status-pill-active {
    background-color: rgba(16, 185, 129, 0.12);
    color: #059669;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 5px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #10b981;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.status-pill-checkout {
    background-color: #f1f5f9;
    color: #64748b;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 5px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Tables */
.table thead th {
    background-color: #f8fafc;
    color: #475569;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    border-bottom: 2px solid var(--tp-border);
    padding: 0.85rem 1rem;
    white-space: nowrap;
}

.table tbody td {
    padding: 0.9rem 1rem;
    vertical-align: middle;
    font-size: 0.92rem;
    border-bottom: 1px solid #f1f5f9;
}

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

/* Nav Tabs */
.nav-pills-tp .nav-link {
    color: var(--tp-text-muted);
    font-weight: 600;
    padding: 0.65rem 1.25rem;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.nav-pills-tp .nav-link.active {
    background-color: var(--tp-blue-primary);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 75, 147, 0.2);
}

/* Empty State */
.empty-state {
    padding: 3rem 1rem;
    text-align: center;
    color: var(--tp-text-muted);
}

.empty-state i {
    font-size: 3rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
    display: block;
}

/* Footer */
.tp-footer {
    border-top: 1px solid var(--tp-border);
    background-color: #ffffff;
    font-size: 0.85rem;
    color: var(--tp-text-muted);
    padding: 1.25rem 0;
    margin-top: 3rem;
}