/* ========================================
   DOCTORS PAGE STYLES - GREEN THEME
   Metronic 8.5 Compatible
   Updated with Schedule Table
   ======================================== */

/* ========== HERO SECTION ========== */
.hero-doctors {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    min-height: 600px;
    position: relative;
}

.hero-detail {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    min-height: 500px;
    position: relative;
}

/* Background Pattern */
.hero-pattern {
    background-image:
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.03) 0px, rgba(255, 255, 255, 0.03) 2px, transparent 2px, transparent 4px),
        repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.03) 0px, rgba(255, 255, 255, 0.03) 2px, transparent 2px, transparent 4px);
    opacity: 0.5;
}

.hero-pattern-detail {
    background-image:
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.03) 0px, rgba(255, 255, 255, 0.03) 2px, transparent 2px, transparent 4px),
        repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.03) 0px, rgba(255, 255, 255, 0.03) 2px, transparent 2px, transparent 4px);
    opacity: 0.5;
}

/* ========== ANIMATED SHAPES ========== */
.hero-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.shape {
    position: absolute;
    background: rgba(16, 185, 129, 0.15);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: 15%;
    left: 5%;
    animation-delay: 5s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 30%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-30px) rotate(180deg);
    }
}

/* ========== STATS CARD ========== */
.stats-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.stats-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

/* ========== INFO BOX ========== */
.info-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.info-box:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

/* ========== ICON BOX ========== */
.icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ========== WAVE SEPARATOR ========== */
.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.hero-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 120px;
}

.hero-wave-detail {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.hero-wave-detail svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 100px;
}

/* ========== ANIMATIONS ========== */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-title {
    animation: slideUp 0.8s ease-out;
}

.animate-subtitle {
    animation: slideUp 0.8s ease-out 0.2s backwards;
}

.animate-description {
    animation: slideUp 0.8s ease-out 0.4s backwards;
}

/* Badge Animation */
.animate-badge {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* ========== CARD EFFECTS ========== */
.card-hover-shadow {
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.card-hover-shadow:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.2) !important;
}

.card-hover-shadow:hover .img-zoom {
    transform: scale(1.1);
}

.img-zoom {
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Card Overlay */
.card-overlay {
    background: linear-gradient(to top, rgba(16, 185, 129, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-hover-shadow:hover .card-overlay {
    opacity: 1;
}

/* ========== DOCTOR CARD WITH SCHEDULE ========== */
.doctor-card-with-schedule {
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.doctor-card-with-schedule:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.2) !important;
}

/* Doctor Photo Wrapper */
.doctor-photo-wrapper {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.doctor-photo-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

/* Availability Badge Small */
.availability-badge-small {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.availability-badge-small .badge {
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* ========== SCHEDULE TABLE STYLES ========== */
.doctor-schedule-table {
    border-collapse: collapse;
    width: 100%;
    font-size: 0.85rem;
    background: white;
}

.doctor-schedule-table thead {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.doctor-schedule-table thead th {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 12px 8px !important;
    border: 1px solid #e5e7eb;
    white-space: nowrap;
}

.doctor-schedule-table tbody td {
    padding: 12px 8px !important;
    border: 1px solid #e5e7eb;
    vertical-align: middle;
}

.doctor-schedule-table tbody tr:hover {
    background: rgba(16, 185, 129, 0.03);
}

/* Schedule Time Badge */
.schedule-time-badge {
    display: inline-block;
    padding: 4px 10px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
    margin: 2px 0;
}

.schedule-time-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(16, 185, 129, 0.4);
}

/* ========== BUTTON EFFECTS ========== */
.btn-hover-rise {
    transition: all 0.3s ease;
}

.btn-hover-rise:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

.btn-filter {
    transition: all 0.3s ease;
}

.btn-filter.active,
.btn-filter:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

/* ========== ILLUSTRATION EFFECTS ========== */
.hero-illustration {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.illustration-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, transparent 70%);
    animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* ========== MOCKUP EFFECTS ========== */
.mockup-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mockup-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, transparent 70%);
    animation: glow 3s ease-in-out infinite;
}

.mockup-image {
    position: relative;
    z-index: 1;
    animation: float-image 6s ease-in-out infinite;
}

@keyframes float-image {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* ========== BREADCRUMB ========== */
.breadcrumb-custom {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 0.5rem;
    padding: 1rem 1.5rem;
}

.breadcrumb-custom .breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

/* ========== CONTENT TEXT ========== */
.content-text {
    text-align: justify;
    line-height: 1.8;
}

/* ========== UTILITY CLASSES ========== */
.object-fit-cover {
    object-fit: cover;
}

/* ========== COUNTER ANIMATION ========== */
.counter {
    display: inline-block;
}

/* ========== PAGINATION ========== */
.pagination .page-link {
    border-radius: 0.5rem;
    margin: 0 0.25rem;
    border: none;
    padding: 0.75rem 1rem;
    color: #059669;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

.pagination .page-link:hover {
    background: #f0fdf4;
    color: #059669;
    transform: translateY(-2px);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 991px) {

    .hero-doctors,
    .hero-detail {
        min-height: auto;
    }

    .shape {
        display: none;
    }

    .mockup-image {
        max-width: 100% !important;
    }

    /* Responsive Schedule Table */
    .doctor-schedule-table {
        font-size: 0.7rem;
    }

    .doctor-schedule-table thead th {
        font-size: 0.65rem;
        padding: 8px 4px !important;
    }

    .doctor-schedule-table tbody td {
        padding: 8px 4px !important;
    }

    .schedule-time-badge {
        font-size: 0.65rem;
        padding: 3px 6px;
    }
}

@media (max-width: 767px) {
    .hero-wave svg {
        height: 80px;
    }

    .hero-wave-detail svg {
        height: 60px;
    }

    .stats-card {
        padding: 1rem !important;
    }

    .btn-filter {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }

    /* Mobile Schedule Table */
    .doctor-schedule-table {
        font-size: 0.6rem;
    }

    .doctor-schedule-table thead th {
        font-size: 0.6rem;
        padding: 6px 2px !important;
    }

    .doctor-schedule-table tbody td {
        padding: 6px 2px !important;
    }

    .schedule-time-badge {
        font-size: 0.6rem;
        padding: 2px 4px;
        display: block;
        margin: 2px auto;
        max-width: fit-content;
    }

    /* Stack photo and info on mobile */
    .doctor-photo-wrapper {
        margin-bottom: 20px;
    }
}

/* ========== LOADING STATE ========== */
.doctor-item {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.doctor-item.loading {
    opacity: 0.5;
}

/* ========== PRINT STYLES ========== */
@media print {

    .hero-doctors,
    .hero-detail,
    .hero-shapes,
    .hero-wave,
    .hero-wave-detail,
    .btn,
    .card-overlay {
        display: none !important;
    }

    .card {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }

    .doctor-schedule-table {
        font-size: 0.75rem;
    }

    .schedule-time-badge {
        background: #10b981 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* ========== ADDITIONAL HOVER EFFECTS ========== */
.card-body .badge {
    transition: all 0.3s ease;
}

.card-hover-shadow:hover .badge {
    transform: scale(1.05);
}

/* ========== STICKY SIDEBAR ========== */
@media (min-width: 992px) {
    .sticky-top {
        position: sticky;
        top: 100px;
        z-index: 10;
    }
}

/* ========== HERO BADGE ========== */
.hero-badge {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== TABLE SCROLL HINT ========== */
.table-responsive::-webkit-scrollbar {
    height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: #10b981;
    border-radius: 10px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: #059669;
}

/* ========== ALERT STYLING ========== */
.alert-light-warning {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fcd34d;
}

.alert-light-info {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #7dd3fc;
}
