.patient-registration {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 15px;
}

.page-title {
    color: #2c3e50;
    font-weight: 600;
}

.progress {
    height: 15px;
    border-radius: 20px;
    background-color: #e9ecef;
}

.progress-bar {
    background-color: #007bff;
    transition: width 0.5s ease;
}

.nav-tabs .nav-link {
    border: 1px solid #dee2e6;
    margin-right: 5px;
    color: #495057;
    background-color: #f8f9fa;
    border-radius: 4px 4px 0 0;
    position: relative;
    padding-left: 35px;
}

.tab-number {
    position: absolute;
    left: 10px;
    display: inline-block;
    width: 20px;
    height: 20px;
    line-height: 20px;
    background-color: #007bff;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 12px;
    font-weight: bold;
}

.nav-tabs .nav-link.active {
    background-color: #fff;
    border-bottom-color: transparent;
}

.nav-tabs .nav-link.active .tab-number {
    background-color: #28a745;
}

.card {
    margin-bottom: 20px;
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.card-header {
    background-color: #007bff;
    color: white;
    font-weight: 500;
}

.form-group label {
    font-weight: 500;
    color: #495057;
}

.custom-switch .custom-control-label::before {
    width: 2rem;
}

.custom-switch .custom-control-label::after {
    left: calc(-2.25rem + 2px);
}

.custom-switch .custom-control-input:checked~.custom-control-label::after {
    transform: translateX(1.2rem);
}

.consent-text {
    background-color: #f8f9fa;
    border-radius: 4px;
}

.emergency-contact,
.secondary-insurance {
    padding: 15px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background-color: #f8f9fa;
}

table.table-bordered {
    border-collapse: collapse;
}

table.table-bordered th,
table.table-bordered td {
    vertical-align: middle;
}

.btn-prev,
.btn-next,
.btn-save,
.btn-submit {
    min-width: 120px;
}

.btn-add-emergency,
.btn-add-insurance {
    margin-top: 10px;
}

.consent-checkbox {
    transform: scale(1.2);
}

.modal-header .close {
    color: white;
}

#documentsTable .btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

.alert {
    border-radius: 4px;
}

.day-checkbox {
    transform: scale(1.5);
    margin: 0 auto;
    display: block;
}

/* Toast positioning and styling */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1050;
}

.toast {
    min-width: 300px;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    opacity: 0.95;
    border: none;
    border-radius: 4px;
}

.toast-header {
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    padding: 0.5rem 0.75rem;
}

.toast-body {
    padding: 0.75rem;
    background-color: white;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}

/* Patient Upload Photo*/
.patient-photo-preview {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid #dee2e6;
    background-color: #f8f9fa;
}

.patient-photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .nav-tabs .nav-link {
        padding: 0.5rem 0.75rem;
        padding-left: 30px;
        font-size: 0.9rem;
    }

    .tab-number {
        width: 18px;
        height: 18px;
        line-height: 18px;
        font-size: 10px;
    }

    .btn-prev,
    .btn-next,
    .btn-save,
    .btn-submit {
        min-width: 100px;
        font-size: 0.9rem;
    }

    .toast-container {
        max-width: 90%;
        right: 5%;
        left: 5%;
    }

    .toast {
        min-width: unset;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .nav-tabs {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        -ms-overflow-style: -ms-autohiding-scrollbar;
    }

    .nav-tabs .nav-link {
        white-space: nowrap;
        padding: 0.5rem 0.5rem;
        padding-left: 25px;
        font-size: 0.8rem;
    }

    .tab-number {
        left: 5px;
        width: 16px;
        height: 16px;
        line-height: 16px;
        font-size: 9px;
    }
}

/* ── Slot Availability Badges ───────────────────────────────────────────────── */
.slot-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 500;
    white-space: nowrap;
}

.slot-badge-loading {
    color: #6c757d;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
}

.slot-badge-available {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
}

.slot-badge-limited {
    color: #856404;
    background-color: #fff3cd;
    border: 1px solid #ffc107;
}

.slot-badge-full {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
}
.slot-counts {
    opacity: 0.8;
    font-size: 0.72rem;
    font-weight: 400;
}
/* ── End Slot Availability Badges ───────────────────────────────────────────── */
