body {
    background-color: #f5f7fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.card-stat {
    transition: transform 0.15s ease;
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.card-stat:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.login-card {
    max-width: 400px;
    margin: 80px auto;
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.login-card .card-body {
    padding: 2.5rem;
}

.table th {
    font-weight: 600;
    white-space: nowrap;
}

.badge-phase {
    font-size: 0.85em;
    padding: 0.35em 0.7em;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #8892a0;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.fetch-result {
    border-radius: 12px;
}

.badge-notify {
    position: absolute;
    top: 2px;
    right: -4px;
    font-size: 0.65em;
    padding: 0.25em 0.5em;
}

.table-warning {
    --bs-table-bg: #fff8e1;
}

.table-skipped-warning {
    --bs-table-bg: #f3e8ff;
    --bs-table-striped-bg: #eadbff;
    --bs-table-hover-bg: #e3d0ff;
}

.existing-context-cell,
.doctor-context-cell {
    color: #6c757d !important;
    background-color: #f8f9fa !important;
    font-style: italic;
}

.stage-card.active {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.15rem rgba(13, 110, 253, 0.15);
}
