/**
 * display.css
 * 
 * Dark Pastel / Glass Hero Style
 * تصميم مستوحى من التدرجات الداكنة والزجاجية
 */

/* ===== CSS Variables ===== */
:root {
    /* Dark Pastel Colors */
    --bg-primary: #0a0a15;
    --bg-secondary: #151520;
    --bg-tertiary: #1a1a2e;
    
    /* Pastel Neon Colors */
    --pastel-purple: #a78bfa;
    --pastel-blue: #60a5fa;
    --pastel-cyan: #34d399;
    --pastel-teal: #2dd4bf;
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-tertiary: rgba(255, 255, 255, 0.5);
    
    /* Glass Effect */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
}

/* ===== Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.hero-display {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    font-family: 'Tajawal', 'Amiri', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    position: relative;
}

/* ===== Main Container ===== */
.display-container {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* ===== Background Elements ===== */
.background-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: orbFloat 20s ease-in-out infinite;
}

.orb-1 {
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, var(--pastel-purple) 0%, transparent 70%);
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 35vw;
    height: 35vw;
    background: radial-gradient(circle, var(--pastel-blue) 0%, transparent 70%);
    bottom: -10%;
    right: -10%;
    animation-delay: 7s;
}

.orb-3 {
    width: 30vw;
    height: 30vw;
    background: radial-gradient(circle, var(--pastel-teal) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 14s;
}

@keyframes orbFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(5%, -5%) scale(1.1);
    }
    66% {
        transform: translate(-5%, 5%) scale(0.9);
    }
}

/* ===== Content Wrapper ===== */
.content-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 95vw;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5vw;
    align-items: center;
    padding: 5vh 5vw;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Text Section (Left) ===== */
.text-section {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-right: 3vw;
}

.info-content {
    display: flex;
    flex-direction: column;
    gap: 4vh;
    width: 100%;
}

/* Name with Status */
.name-with-status {
    display: flex;
    flex-direction: column;
    gap: 2vh;
    position: relative;
}

/* Doctor Name */
.doctor-name {
    font-family: 'Amiri', 'Tajawal', serif;
    font-size: clamp(3.5rem, 8vw, 7rem);
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: 0.02em;
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.15);
    animation: nameGlow 3s ease-in-out infinite;
}

@keyframes nameGlow {
    0%, 100% {
        text-shadow: 0 0 40px rgba(255, 255, 255, 0.1);
    }
    50% {
        text-shadow: 0 0 60px rgba(167, 139, 250, 0.3);
    }
}

/* Status Indicator */
.status-indicator-wrapper {
    display: flex;
    align-items: center;
    gap: 1.5vw;
    margin-top: 1vh;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 1.2vw;
    padding: 1.2vh 2vw;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 2vw;
    position: relative;
    overflow: visible;
    box-shadow: var(--glass-shadow);
    animation: statusSlideIn 0.6s ease-out;
}

@keyframes statusSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.status-dot {
    width: 1.2vw;
    height: 1.2vw;
    min-width: 12px;
    min-height: 12px;
    max-width: 18px;
    max-height: 18px;
    background: var(--pastel-cyan);
    border-radius: 50%;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 15px rgba(52, 211, 153, 0.8);
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 15px rgba(52, 211, 153, 0.8);
    }
    50% {
        transform: scale(1.2);
        box-shadow: 0 0 25px rgba(52, 211, 153, 1);
    }
}

.status-ring {
    position: absolute;
    top: 50%;
    right: 0.6vw;
    transform: translate(-50%, -50%);
    width: 2.5vw;
    height: 2.5vw;
    min-width: 30px;
    min-height: 30px;
    max-width: 40px;
    max-height: 40px;
    border: 2px solid var(--pastel-cyan);
    border-radius: 50%;
    opacity: 0.6;
    animation: statusRingPulse 2s ease-in-out infinite;
}

@keyframes statusRingPulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.8);
        opacity: 0;
    }
}

.status-ring-2 {
    position: absolute;
    top: 50%;
    right: 0.6vw;
    transform: translate(-50%, -50%);
    width: 2.5vw;
    height: 2.5vw;
    min-width: 30px;
    min-height: 30px;
    max-width: 40px;
    max-height: 40px;
    border: 2px solid var(--pastel-cyan);
    border-radius: 50%;
    opacity: 0.4;
    animation: statusRingPulse2 2s ease-in-out infinite;
    animation-delay: 0.5s;
}

@keyframes statusRingPulse2 {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.4;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.8);
        opacity: 0;
    }
}

.status-text {
    font-family: 'Changa', 'Tajawal', sans-serif;
    font-size: clamp(0.9rem, 1.3vw, 1.1rem);
    font-weight: 700;
    color: var(--pastel-cyan);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    z-index: 2;
    text-shadow: 0 0 10px rgba(52, 211, 153, 0.5);
    animation: statusTextGlow 2s ease-in-out infinite;
}

@keyframes statusTextGlow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(52, 211, 153, 0.5);
        opacity: 1;
    }
    50% {
        text-shadow: 0 0 20px rgba(52, 211, 153, 0.8);
        opacity: 0.9;
    }
}

/* حالات مختلفة للعلامة */
.status-indicator.ending {
    border-color: #fbbf24;
}

.status-indicator.ending .status-dot {
    background: #fbbf24;
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.8);
    animation: statusPulseWarning 1.5s ease-in-out infinite;
}

@keyframes statusPulseWarning {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 15px rgba(251, 191, 36, 0.8);
    }
    50% {
        transform: scale(1.3);
        box-shadow: 0 0 30px rgba(251, 191, 36, 1);
    }
}

.status-indicator.ending .status-ring,
.status-indicator.ending .status-ring-2 {
    border-color: #fbbf24;
}

.status-indicator.ending .status-text {
    color: #fbbf24;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

.status-indicator.absent {
    border-color: rgba(255, 255, 255, 0.3);
    opacity: 0.5;
}

.status-indicator.absent .status-dot {
    background: #6c757d;
    box-shadow: none;
    animation: none;
}

.status-indicator.absent .status-ring,
.status-indicator.absent .status-ring-2 {
    display: none;
}

.status-indicator.absent .status-text {
    color: var(--text-secondary);
    text-shadow: none;
    animation: none;
}

/* Doctor Specialty */
.doctor-specialty {
    font-family: 'Changa', 'Tajawal', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 600;
    color: var(--pastel-cyan);
    margin: 0;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    opacity: 0.95;
}

/* Time Info Group */
.time-info-group {
    display: flex;
    flex-direction: column;
    gap: 2vh;
    margin-top: 2vh;
}

.time-badge {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 2vw;
    padding: 2.5vh 3vw;
    display: flex;
    flex-direction: column;
    gap: 1vh;
    box-shadow: var(--glass-shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.time-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 100%);
    transition: left 0.5s ease;
}

.time-badge:hover::before {
    left: 100%;
}

.time-label {
    font-family: 'Tajawal', sans-serif;
    font-size: clamp(0.9rem, 1.5vw, 1.2rem);
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.time-value-wrapper {
    position: relative;
    display: inline-block;
}

.time-value {
    font-family: 'Inter', 'Courier New', monospace;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    color: var(--text-primary);
    position: relative;
    z-index: 2;
    display: inline-block;
    transition: all 0.3s ease;
    letter-spacing: 0.05em;
}

/* أنيميشن للرقم عند التحديث */
.time-value.updated {
    animation: numberPulse 0.5s ease;
}

@keyframes numberPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
    100% {
        transform: scale(1);
    }
}

/* تأثير النبض حول الرقم */
.time-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    border-radius: 50%;
    background: radial-gradient(circle, var(--pastel-cyan) 0%, transparent 70%);
    opacity: 0.3;
    animation: pulseRing 2s ease-in-out infinite;
    z-index: 1;
}

@keyframes pulseRing {
    0%, 100% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.3;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.1;
    }
}

#remaining-time-badge .time-value {
    color: var(--pastel-cyan);
    text-shadow: 0 0 20px rgba(52, 211, 153, 0.4);
}

/* شريط التقدم */
.progress-bar-container {
    margin-top: 1.5vh;
    width: 100%;
}

.progress-bar {
    width: 100%;
    height: 0.8vh;
    min-height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1vw;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, 
        var(--pastel-cyan) 0%,
        var(--pastel-teal) 50%,
        var(--pastel-blue) 100%);
    border-radius: 1vw;
    position: relative;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 20px rgba(52, 211, 153, 0.5);
    animation: progressShine 2s ease-in-out infinite;
}

@keyframes progressShine {
    0%, 100% {
        box-shadow: 0 0 20px rgba(52, 211, 153, 0.5);
    }
    50% {
        box-shadow: 0 0 30px rgba(52, 211, 153, 0.8);
    }
}

.progress-glow {
    position: absolute;
    top: 0;
    right: 0;
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 100%);
    animation: progressGlow 2s ease-in-out infinite;
    border-radius: 1vw;
}

@keyframes progressGlow {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(400%);
    }
}

/* تأثيرات خاصة عند اقتراب الوقت من الانتهاء */
#remaining-time-badge.warning .progress-fill {
    background: linear-gradient(90deg, 
        #fbbf24 0%,
        #f59e0b 50%,
        #f87171 100%);
    box-shadow: 0 0 25px rgba(251, 191, 36, 0.6);
    animation: progressWarning 1s ease-in-out infinite;
}

@keyframes progressWarning {
    0%, 100% {
        box-shadow: 0 0 25px rgba(251, 191, 36, 0.6);
    }
    50% {
        box-shadow: 0 0 40px rgba(251, 191, 36, 0.9);
    }
}

#remaining-time-badge.danger .progress-fill {
    background: linear-gradient(90deg, 
        #f87171 0%,
        #ef4444 50%,
        #dc2626 100%);
    box-shadow: 0 0 30px rgba(248, 113, 113, 0.7);
    animation: progressDanger 0.8s ease-in-out infinite;
}

@keyframes progressDanger {
    0%, 100% {
        box-shadow: 0 0 30px rgba(248, 113, 113, 0.7);
        transform: scaleX(1);
    }
    50% {
        box-shadow: 0 0 50px rgba(248, 113, 113, 1);
        transform: scaleX(1.02);
    }
}

#remaining-time-badge.warning .time-value,
#remaining-time-badge.danger .time-value {
    animation: timeUrgent 1s ease-in-out infinite;
}

@keyframes timeUrgent {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

#remaining-time-badge.warning .time-pulse,
#remaining-time-badge.danger .time-pulse {
    animation: pulseRingUrgent 1s ease-in-out infinite;
}

@keyframes pulseRingUrgent {
    0%, 100% {
        transform: translate(-50%, -50%) scale(0.9);
        opacity: 0.4;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0.2;
    }
}

#checkin-time-badge .time-value {
    color: var(--pastel-blue);
}

/* ===== Hero Image Section (Right) ===== */
.hero-image-section {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-card {
    position: relative;
    width: 35vw;
    height: 35vw;
    min-width: 400px;
    min-height: 400px;
    max-width: 600px;
    max-height: 600px;
    aspect-ratio: 1;
    border-radius: 3vw;
    overflow: hidden;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    animation: cardFloat 6s ease-in-out infinite;
}

@keyframes cardFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-10px) scale(1.02);
    }
}

.card-glow {
    position: absolute;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, 
        var(--pastel-purple) 0%,
        var(--pastel-blue) 30%,
        var(--pastel-teal) 60%,
        transparent 80%);
    opacity: 0.4;
    animation: glowPulse 4s ease-in-out infinite;
    z-index: 1;
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.1);
    }
}

.card-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(167, 139, 250, 0.1) 0%,
        rgba(96, 165, 250, 0.1) 50%,
        rgba(45, 212, 191, 0.1) 100%);
    z-index: 2;
}

.doctor-photo {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 3;
    filter: brightness(1.05) contrast(1.05);
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, 
        transparent 0%,
        rgba(0, 0, 0, 0.1) 100%);
    z-index: 4;
    pointer-events: none;
}

/* ===== Back to Admin Button ===== */
.back-to-admin-btn {
    position: fixed;
    top: 3vh;
    left: 3vw;
    padding: 1.5vh 2.5vw;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 2vw;
    color: var(--text-primary);
    font-family: 'Tajawal', 'Amiri', sans-serif;
    font-size: clamp(0.9rem, 1.3vw, 1.1rem);
    font-weight: 600;
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1vw;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--glass-shadow);
    opacity: 0.9;
    letter-spacing: 0.01em;
    overflow: hidden;
    position: relative;
}

.back-to-admin-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 100%);
    transition: left 0.5s ease;
}

.back-to-admin-btn:hover::before {
    left: 100%;
}

.back-to-admin-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--pastel-cyan);
    transform: translateX(-5px) translateY(-2px);
    box-shadow: 0 8px 40px rgba(52, 211, 153, 0.4);
    opacity: 1;
}

.back-to-admin-btn i {
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    transition: transform 0.3s ease;
}

.back-to-admin-btn:hover i {
    transform: translateX(-3px);
}

.back-to-admin-btn .btn-text {
    font-weight: 600;
    white-space: nowrap;
}

/* ===== Change Photo Button ===== */
.change-photo-btn {
    position: fixed;
    bottom: 3vh;
    right: 3vw;
    width: 4vw;
    height: 4vw;
    min-width: 50px;
    min-height: 50px;
    max-width: 70px;
    max-height: 70px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--text-primary);
    font-size: clamp(1.2rem, 1.8vw, 1.8rem);
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: var(--glass-shadow);
    opacity: 0;
    pointer-events: none;
}

.display-container:hover .change-photo-btn {
    opacity: 1;
    pointer-events: all;
}

.change-photo-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--pastel-cyan);
    transform: scale(1.1);
    box-shadow: 0 8px 40px rgba(52, 211, 153, 0.4);
}

/* ===== Photo Modal ===== */
.photo-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.photo-modal.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: var(--bg-secondary);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 2vw;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--glass-shadow);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2vh 3vw;
    border-bottom: 1px solid var(--glass-border);
}

.modal-header h3 {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 700;
    color: var(--text-primary);
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.2s ease;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    transform: rotate(90deg);
}

.modal-body {
    padding: 3vh 3vw;
    flex: 1;
    overflow-y: auto;
}

.photo-upload-area {
    margin-bottom: 2vh;
}

.upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1vh;
    padding: 4vh 3vw;
    background: var(--glass-bg);
    border: 2px dashed var(--glass-border);
    border-radius: 1.5vw;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.upload-label:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--pastel-cyan);
}

.upload-label i {
    font-size: 3rem;
    color: var(--pastel-cyan);
}

.upload-label span {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.photo-preview {
    margin-top: 2vh;
    display: none;
}

.photo-preview.active {
    display: block;
}

.photo-preview img {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    border-radius: 1vw;
    border: 1px solid var(--glass-border);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1vw;
    padding: 2vh 3vw;
    border-top: 1px solid var(--glass-border);
}

.btn {
    padding: 1.2vh 2.5vw;
    border: none;
    border-radius: 1vw;
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Cairo', sans-serif;
}

.btn-cancel {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
}

.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.btn-save {
    background: linear-gradient(135deg, var(--pastel-cyan) 0%, var(--pastel-teal) 100%);
    color: var(--bg-primary);
    box-shadow: 0 4px 20px rgba(52, 211, 153, 0.3);
}

.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(52, 211, 153, 0.5);
}

/* ===== Control Panel Toggle Button ===== */
.control-panel-toggle {
    position: fixed;
    top: 3vh;
    right: 3vw;
    width: 4vw;
    height: 4vw;
    min-width: 50px;
    min-height: 50px;
    max-width: 70px;
    max-height: 70px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--text-primary);
    font-size: clamp(1.2rem, 1.8vw, 1.8rem);
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: var(--glass-shadow);
    opacity: 0;
    pointer-events: none;
}

.display-container:hover .control-panel-toggle {
    opacity: 1;
    pointer-events: all;
}

.control-panel-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--pastel-purple);
    transform: scale(1.1);
    box-shadow: 0 8px 40px rgba(167, 139, 250, 0.4);
}

/* ===== Control Panel ===== */
.control-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 30vw;
    min-width: 350px;
    max-width: 450px;
    height: 100vh;
    background: var(--bg-secondary);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-left: 1px solid var(--glass-border);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.control-panel.active {
    right: 0;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.5vh 2.5vw;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.02);
}

.panel-header h3 {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.panel-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.2s ease;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.panel-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    transform: rotate(90deg);
}

.panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 2.5vh 2.5vw;
    display: flex;
    flex-direction: column;
    gap: 3vh;
}

/* ===== Control Groups ===== */
.control-group {
    display: flex;
    flex-direction: column;
    gap: 1.5vh;
}

.control-label {
    display: flex;
    align-items: center;
    gap: 1vw;
    cursor: pointer;
    font-size: clamp(0.95rem, 1.3vw, 1.1rem);
    color: var(--text-primary);
    font-weight: 600;
}

.control-label input[type="checkbox"] {
    width: 1.5rem;
    height: 1.5rem;
    cursor: pointer;
    accent-color: var(--pastel-cyan);
}

.control-info {
    display: flex;
    align-items: center;
    gap: 1vw;
    margin-top: 1vh;
    padding-right: 2vw;
}

.interval-input {
    width: 4rem;
    padding: 0.8vh 1vw;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 0.5vw;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    font-family: 'Inter', monospace;
}

.interval-input:focus {
    outline: none;
    border-color: var(--pastel-cyan);
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.1);
}

.control-info span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ===== Navigation Buttons ===== */
.nav-buttons-group {
    display: flex;
    gap: 1.5vw;
    justify-content: center;
}

.nav-btn {
    flex: 1;
    padding: 2vh 2vw;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 1vw;
    color: var(--text-primary);
    font-size: clamp(1.2rem, 1.8vw, 1.5rem);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--glass-shadow);
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--pastel-cyan);
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(52, 211, 153, 0.3);
}

.nav-btn:active {
    transform: translateY(0);
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ===== Doctors List ===== */
.doctors-list-title {
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5vh;
    padding-bottom: 1vh;
    border-bottom: 1px solid var(--glass-border);
}

.doctors-list {
    display: flex;
    flex-direction: column;
    gap: 1vh;
    max-height: 50vh;
    overflow-y: auto;
    padding-right: 0.5vw;
}

/* Scrollbar Styling */
.doctors-list::-webkit-scrollbar {
    width: 6px;
}

.doctors-list::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: 3px;
}

.doctors-list::-webkit-scrollbar-thumb {
    background: var(--pastel-cyan);
    border-radius: 3px;
}

.doctors-list::-webkit-scrollbar-thumb:hover {
    background: var(--pastel-teal);
}

.doctor-item {
    padding: 1.5vh 1.5vw;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 1vw;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1.5vw;
    position: relative;
    overflow: hidden;
}

.doctor-item::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: var(--pastel-cyan);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.doctor-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--pastel-cyan);
    transform: translateX(-5px);
}

.doctor-item:hover::before {
    transform: scaleY(1);
}

.doctor-item.active {
    background: rgba(52, 211, 153, 0.15);
    border-color: var(--pastel-cyan);
    box-shadow: 0 4px 20px rgba(52, 211, 153, 0.2);
}

.doctor-item.active::before {
    transform: scaleY(1);
}

.doctor-item-photo {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--glass-border);
    flex-shrink: 0;
}

.doctor-item-info {
    flex: 1;
    min-width: 0;
}

.doctor-item-name {
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.3vh;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.doctor-item-specialty {
    font-size: clamp(0.8rem, 1vw, 0.9rem);
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.doctor-item-status {
    display: flex;
    align-items: center;
    gap: 0.5vw;
    margin-top: 0.5vh;
}

.status-badge {
    padding: 0.3vh 0.8vw;
    border-radius: 0.5vw;
    font-size: clamp(0.7rem, 0.9vw, 0.8rem);
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.present {
    background: rgba(52, 211, 153, 0.2);
    color: var(--pastel-cyan);
    border: 1px solid var(--pastel-cyan);
}

.status-badge.ending {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border: 1px solid #fbbf24;
}

.status-badge.absent {
    background: rgba(248, 113, 113, 0.2);
    color: #f87171;
    border: 1px solid #f87171;
}

/* ===== Responsive ===== */
@media (max-width: 1200px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 4vh;
        padding: 3vh 4vw;
    }
    
    .text-section {
        padding-right: 0;
        text-align: center;
    }
    
    .info-content {
        align-items: center;
    }
    
    .hero-card {
        width: 50vw;
        height: 50vw;
        min-width: 300px;
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .content-wrapper {
        padding: 2vh 3vw;
    }
    
    .hero-card {
        width: 70vw;
        height: 70vw;
        min-width: 250px;
        min-height: 250px;
    }
    
    .change-photo-btn {
        width: 8vw;
        height: 8vw;
        min-width: 45px;
        min-height: 45px;
    }
    
    .control-panel {
        width: 40vw;
        min-width: 300px;
    }
}

@media (max-width: 768px) {
    .control-panel {
        width: 100vw;
        min-width: 100%;
    }
    
    .back-to-admin-btn {
        padding: 1.2vh 2vw;
        font-size: clamp(0.8rem, 1.1vw, 1rem);
    }
    
    .back-to-admin-btn .btn-text {
        display: none;
    }
    
    .back-to-admin-btn {
        width: 8vw;
        height: 8vw;
        min-width: 45px;
        min-height: 45px;
        border-radius: 50%;
        padding: 0;
    }
}

