@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background: #f8fafc;
    color: #0f172a;
    padding: 16px;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Radiant Ambient Glows */
body::before {
    content: '';
    position: fixed;
    top: -100px;
    right: -100px;
    width: 340px;
    height: 340px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.22) 0%, rgba(59, 130, 246, 0.15) 60%, transparent 80%);
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    bottom: -100px;
    left: -100px;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.18) 0%, rgba(13, 148, 136, 0.12) 60%, transparent 80%);
    filter: blur(90px);
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 480px;
    margin: 0 auto;
}

/* Luminous Liquid Glass Card */
.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 15px 35px -5px rgba(15, 23, 42, 0.05);
    margin-bottom: 16px;
}

.doctor-profile {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Doctor Section Header & Swipe Indicator */
.doctor-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.count-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    background: rgba(6, 182, 212, 0.12);
    color: #0891b2;
    border: 1px solid rgba(6, 182, 212, 0.25);
    border-radius: 999px;
    margin-left: 6px;
    vertical-align: middle;
}

.doctor-select-box {
    position: relative;
    margin-top: 12px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
}

.select-icon-left {
    position: absolute;
    left: 14px;
    color: #0891b2;
    font-size: 15px;
    pointer-events: none;
    z-index: 2;
}

.select-chevron-right {
    position: absolute;
    right: 14px;
    color: #64748b;
    font-size: 13px;
    pointer-events: none;
    z-index: 2;
}

.doctor-select {
    width: 100%;
    padding: 13px 38px 13px 40px;
    border-radius: 16px;
    border: 1.5px solid rgba(6, 182, 212, 0.35);
    background: rgba(255, 255, 255, 0.98);
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
    outline: none;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.05);
    transition: all 0.25s ease;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.doctor-select:focus {
    border-color: #06b6d4;
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.2);
}

.doctor-avatar-wrapper {
    position: relative;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
}

.doctor-photo-img {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    object-fit: cover;
    border: 2px solid #ffffff;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
    display: block;
}

.avatar {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(59, 130, 246, 0.2));
    border: 1.5px solid rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.doctor-subinfo {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
    margin-top: 3px;
}

.meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    color: #059669;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 999px;
    padding: 2px 7px;
}

.card-title {
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.date-selector {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
}
.date-selector::-webkit-scrollbar {
    display: none;
}

.date-btn {
    flex: 0 0 auto;
    width: 60px;
    padding: 12px 6px;
    border-radius: 18px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: rgba(255, 255, 255, 0.8);
    color: #64748b;
    cursor: pointer;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.date-btn b {
    display: block;
    font-size: 16px;
    color: #0f172a;
    margin-top: 2px;
    font-weight: 800;
}

.date-btn.active {
    background: linear-gradient(135deg, #06b6d4, #2563eb);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 20px -5px rgba(6, 182, 212, 0.45);
    transform: translateY(-2px);
}

.date-btn.active b {
    color: #ffffff;
}

.slots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.slot-item {
    padding: 12px 8px;
    border-radius: 16px;
    text-align: center;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    border: 1px solid rgba(226, 232, 240, 0.8);
    background: rgba(255, 255, 255, 0.7);
    color: #64748b;
    transition: all 0.2s ease;
}

.slot-item.available {
    background: rgba(16, 185, 129, 0.1);
    color: #047857;
    border-color: rgba(16, 185, 129, 0.25);
}

.slot-item.available:hover, .slot-item.selected {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 18px -4px rgba(16, 185, 129, 0.4);
    transform: scale(1.02);
}

.slot-item.disabled {
    opacity: 0.45;
    background: rgba(241, 245, 249, 0.7);
    cursor: not-allowed;
    text-decoration: line-through;
    color: #94a3b8;
    border-style: dashed;
}

.book-btn {
    width: 100%;
    padding: 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    margin-top: 10px;
    box-shadow: 0 12px 25px -5px rgba(6, 182, 212, 0.4);
    transition: all 0.25s ease;
}

.book-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px -5px rgba(6, 182, 212, 0.5);
}

.book-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}