/*
 * Booking Calendar Shared Styles
 * Unified styling with a premium animated gradient: Light Sky Blue to Dark Purple.
 */

@keyframes dayBorderGlow {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes bookingPulse {
    0% { box-shadow: 0 0 10px rgba(0, 255, 135, 0.3); transform: scale(1); }
    50% { box-shadow: 0 0 25px rgba(0, 255, 135, 0.6); transform: scale(1.02); }
    100% { box-shadow: 0 0 10px rgba(0, 255, 135, 0.3); transform: scale(1); }
}

#booking-app {
    font-family: 'Inter', 'Outfit', 'Roboto', 'Arial', sans-serif;
    color: #fff;
}

#booking-app .nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 14px 0;
}

#booking-app h1 {
    font-size: 22px;
    margin: 10px 0;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #aaa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

#booking-app h2 {
    font-size: 16px;
    color: #eee;
    font-weight: 600;
}

#booking-app #calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-top: 12px;
}

/* Base style for day and hour cells */
#booking-app .day,
#booking-app .hour {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-sizing: border-box;
}

#booking-app .day:not(.header),
#booking-app .hour {
    min-height: 85px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 12px 6px;
    position: relative;
    background: #000;
    overflow: hidden;
    z-index: 1;
    border: none;
    border-radius: 16px;
    transition: all 0.3s ease;
}

/* Explicit Header Styling - FORCED VISIBILITY */
#booking-app .day.header {
    background: #1a1a1a !important; /* Solid dark gray */
    color: #ffffff !important;
    font-weight: 900 !important;
    font-size: 15px !important;
    padding: 12px 0 !important;
    text-align: center !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 48px !important;
    height: 48px !important;
    margin-bottom: 8px !important;
    z-index: 10 !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
}

#booking-app .day.header .day-short {
    display: none;
}

#booking-app .day:not(.header)::after,
#booking-app .hour::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: #000;
    border-radius: 14px;
    z-index: 1;
}

#booking-app .day:not(.header) > *,
#booking-app .hour > * {
    position: relative;
    z-index: 2;
}

/* Base style for Glowing Borders */
#booking-app .day.available::before,
#booking-app .day.has-temp::before,
#booking-app .day.has-conf::before,
#booking-app .hour.available::before,
#booking-app .hour.has-temp::before,
#booking-app .hour.has-conf::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    animation: dayBorderGlow 4s linear infinite;
    z-index: 0;
}

/* Available: Sky Blue to Purple Glow */
#booking-app .day.available::before,
#booking-app .hour.available::before {
    background: conic-gradient(from 0deg, transparent 0%, #00bfff 25%, #4b0082 50%, transparent 75%);
}

/* Temporary Booking: Charming Orange Glow */
#booking-app .day.has-temp::before,
#booking-app .hour.has-temp::before {
    background: conic-gradient(from 0deg, transparent 0%, #ff8c00 25%, #ff4500 50%, transparent 75%);
}

/* Confirmed Booking: Dark Red Glow */
#booking-app .day.has-conf::before,
#booking-app .hour.has-conf::before {
    background: conic-gradient(from 0deg, transparent 0%, #8b0000 25%, #ff0000 50%, transparent 75%);
}

#booking-app .day.available:hover,
#booking-app .hour.available:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 10px 30px rgba(0, 191, 255, 0.2);
    cursor: pointer;
}

#booking-app .day.unavailable,
#booking-app .day.past-day,
#booking-app .hour.booked:not(.my-booking),
#booking-app .hour.unavailable {
    background: #1a1a1a !important;
    color: #555;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    opacity: 0.8;
}

#booking-app .day.unavailable::after,
#booking-app .day.past-day::after,
#booking-app .hour.booked:not(.my-booking)::after,
#booking-app .hour.unavailable::after {
    display: none;
}
#booking-app .day.unavailable::before,
#booking-app .day.past-day::before,
#booking-app .hour.booked:not(.my-booking)::before,
#booking-app .hour.unavailable::before {
    display: none;
}

#booking-app .selected {
    background: #fff !important;
    color: #4B0082 !important;
    font-weight: 800;
    box-shadow: 0 0 20px #fff;
    border-color: #fff;
    transform: scale(1.05);
}

/* User's Own Booking - Electric Emerald with Pulse */
#booking-app .hour.my-booking {
    background: linear-gradient(135deg, #00ff87 0%, #60efff 100%) !important;
    color: #000;
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    animation: bookingPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite !important;
    box-shadow: 0 0 20px rgba(0, 255, 135, 0.5) !important;
}

#booking-app #daily-view {
    display: none;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
    margin-top: 20px;
}

#booking-app .hour {
    min-height: 100px;
    padding: 15px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#booking-app .hour h3 {
    margin: 0;
    font-size: 18px;
    letter-spacing: 0.5px;
}

#booking-app .hour .post-user-name {
    font-size: 14px;
    margin-top: 8px;
    color: #fff;
}

#booking-app .hour .post-user-pic {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid #fff;
    margin-bottom: 5px;
}

.slot-cancel-x {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(255, 0, 0, 0.7);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.slot-cancel-x:hover {
    background: #ff0000;
    transform: scale(1.1);
}

#booking-app #confirm-btn {
    display: none;
    width: 100%;
    max-width: 300px;
    margin: 20px auto;
    padding: 15px;
    border-radius: 50px;
    background: linear-gradient(90deg, #87CEFA, #4B0082);
    color: #fff;
    font-weight: 800;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 6px 20px rgba(75, 0, 130, 0.3);
}

#booking-app #confirm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(75, 0, 130, 0.5);
    filter: brightness(1.1);
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive fixes */
@media (max-width: 768px) {
    #booking-app #calendar {
        gap: 4px;
    }
    #booking-app .day {
        min-height: 60px;
        padding: 8px 4px;
        font-size: 11px;
    }
    #booking-app .day.header .day-full {
        display: none;
    }
    #booking-app .day.header .day-short {
        display: block;
        font-size: 16px;
    }
    #booking-app #daily-view {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Avatar and Booking Status Styling */
#booking-app .slot-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    gap: 6px;
}

#booking-app .slot-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

#booking-app .slot-avatar-placeholder {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

#booking-app .slot-text p {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}

#booking-app .slot-text p small {
    font-size: 10px;
    opacity: 0.8;
}

/* Temporary Booking */
#booking-app .hour.my-booking-temp {
    background: linear-gradient(135deg, #f5af19 0%, #f12711 100%) !important;
    animation: bookingPulseTemp 2s infinite !important;
    box-shadow: 0 0 15px rgba(245, 175, 25, 0.4) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
}

@keyframes bookingPulseTemp {
    0% { box-shadow: 0 0 10px rgba(245, 175, 25, 0.3); transform: scale(1); }
    50% { box-shadow: 0 0 20px rgba(245, 175, 25, 0.6); transform: scale(1.02); }
    100% { box-shadow: 0 0 10px rgba(245, 175, 25, 0.3); transform: scale(1); }
}

/* Confirmed Booking */
#booking-app .hour.my-booking-conf {
    background: linear-gradient(135deg, #00ff87 0%, #60efff 100%) !important;
    animation: bookingPulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite !important;
    box-shadow: 0 0 20px rgba(0, 255, 135, 0.5) !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
}
/* Specialist Dashboard Styling */
/* Specialist Dashboard Modal & Trigger */
.specialist-menu-trigger {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.specialist-menu-trigger:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
    border-color: #00d2ff;
    color: #00d2ff;
}

.specialist-dashboard-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(15px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: modalFadeIn 0.3s ease;
}

.specialist-dashboard-content, .view-selector-content {
    background: linear-gradient(145deg, #0f0f0f, #050505);
    border: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
    max-width: 450px; /* More compact for selector */
    border-radius: 30px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 210, 255, 0.1);
    animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.selector-header {
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.selector-header h3 {
    margin: 0;
    font-size: 16px;
    color: #fff;
    font-weight: 700;
}

.close-selector {
    background: none;
    border: none;
    color: rgba(255,255,255,0.3);
    font-size: 24px;
    cursor: pointer;
}

.selector-options {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.selector-option {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #eee;
    padding: 15px 20px;
    border-radius: 16px;
    text-align: right;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
    direction: rtl;
}

.selector-option i {
    width: 20px;
    color: #00d2ff;
}

.selector-option:hover {
    background: rgba(0, 210, 255, 0.1);
    border-color: #00d2ff;
    color: #fff;
    transform: translateX(-5px);
}

.specialist-dashboard {
    padding: 20px;
    direction: rtl;
}



.dashboard-section h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dashboard-section h3 i {
    color: #00ff87;
}

.sessions-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.session-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: all 0.3s ease;
}

.session-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.session-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.session-client-pic {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    object-fit: cover;
}

.session-client-info {
    flex: 1;
}

.session-client-name {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}

.session-time-badge {
    font-size: 11px;
    color: #aaa;
    display: flex;
    align-items: center;
    gap: 4px;
}

.session-status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.status-pending { background: rgba(255, 140, 0, 0.15); color: #ff8c00; border: 1px solid rgba(255, 140, 0, 0.3); }
.status-confirmed { background: rgba(255, 255, 255, 0.1); color: #fff; border: 1px solid rgba(255, 255, 255, 0.2); }
.status-calling { background: rgba(0, 255, 135, 0.15); color: #00ff87; border: 1px solid rgba(0, 255, 135, 0.3); animation: statusPulse 1.5s infinite; }
.status-active { background: linear-gradient(135deg, #00ff87, #60efff); color: #000; font-weight: 800; border: none; }
.status-completed { background: rgba(0, 191, 255, 0.1); color: #00bfff; border: 1px solid rgba(0, 191, 255, 0.3); }
.status-noshow { background: rgba(255, 68, 68, 0.1); color: #ff4444; border: 1px solid rgba(255, 68, 68, 0.3); }
.status-interrupted { background: rgba(255, 255, 0, 0.1); color: #ffff00; border: 1px solid rgba(255, 255, 0, 0.3); }
.status-missed { background: rgba(255, 255, 255, 0.05); color: #888; border: 1px solid rgba(255, 255, 255, 0.1); }

@keyframes statusPulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.05); }
    100% { opacity: 1; transform: scale(1); }
}

.session-card-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 12px;
}

.admin-action-btn {
    width: 100%;
    padding: 10px 14px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-complete { background: #00bfff; color: #fff; }
.btn-complete:hover { background: #0095cc; }

.btn-noshow { background: rgba(255, 255, 255, 0.05); color: #ff4444; border: 1px solid rgba(255, 68, 68, 0.2); }
.btn-noshow:hover { background: rgba(255, 68, 68, 0.1); }

.btn-join { 
    background: linear-gradient(135deg, #00ff87, #60efff); 
    color: #000;
    box-shadow: 0 4px 15px rgba(0, 255, 135, 0.2);
}
.btn-join:hover { 
    filter: brightness(1.1); 
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 135, 0.4);
}

.dashboard-empty {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
    font-size: 14px;
}

/* Session Notes UI */
.session-notes-teaser {
    width: 100%;
}
.notes-toggle-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 11px;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s;
}
.notes-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}
.session-notes-form {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(0,0,0,0.2);
    padding: 10px;
    border-radius: 12px;
}
.note-type-select {
    background: #222;
    color: #fff;
    border: 1px solid #444;
    padding: 4px;
    border-radius: 6px;
    font-size: 11px;
}
.note-textarea {
    background: #111;
    color: #fff;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 8px;
    font-size: 12px;
    min-height: 60px;
    resize: vertical;
}
.btn-save-note {
    background: #00ff87;
    color: #000;
    border: none;
    padding: 6px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 11px;
    cursor: pointer;
}
.btn-save-note:hover {
    filter: brightness(1.1);
}
.hidden { display: none !important; }

/* --- Session Detail Modal --- */
.session-detail-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.85);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

.session-detail-card {
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 90%;
    max-width: 500px;
    border-radius: 24px;
    padding: 24px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
    direction: rtl;
}

.session-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 15px;
}

.session-detail-header h3 { margin: 0; font-size: 18px; color: #00ff87; }

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 13px;
    color: #ccc;
}
.detail-label { color: #888; }
.detail-value { font-weight: 600; color: #fff; }

.notes-timeline {
    margin-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 15px;
    max-height: 250px;
    overflow-y: auto;
}

.note-bubble {
    background: rgba(255,255,255,0.05);
    padding: 10px;
    border-radius: 12px;
    margin-bottom: 10px;
    border-right: 3px solid #00ff87;
}

.note-meta { font-size: 9px; color: #666; margin-bottom: 4px; display: flex; justify-content: space-between; }
.note-text { font-size: 12px; line-height: 1.5; color: #eee; }

.btn-close-detail {
    background: none; border: none; color: #aaa; font-size: 24px; cursor: pointer;
}
.btn-close-detail:hover { color: #fff; }

/* --- Dashboard Enhancements --- */

.dashboard-header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.dashboard-stats-bar {
    display: flex;
    gap: 10px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 12px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-value {
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
}

.stat-label {
    font-size: 9px;
    color: #888;
    text-transform: uppercase;
    margin-top: 2px;
}

.stat-item.success { border-color: rgba(0, 255, 135, 0.3); color: #00ff87; }
.stat-item.danger { border-color: rgba(255, 68, 68, 0.3); color: #ff4444; }
.stat-item.pulse {
    background: rgba(0, 255, 135, 0.1);
    border-color: #00ff87;
    animation: statPulse 2s infinite;
}

@keyframes statPulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 255, 135, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(0, 255, 135, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 255, 135, 0); }
}

.avatar-wrapper {
    position: relative;
    display: inline-block;
}

.live-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    background: #00ff87;
    border: 2px solid #000;
    border-radius: 50%;
    animation: liveBlink 1.5s infinite;
}

@keyframes liveBlink {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

/* --- Dashboard Tabs --- */
.dashboard-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 15px;
}

.dashboard-tab-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #aaa;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.dashboard-tab-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    transform: translateY(-2px);
}

.dashboard-tab-btn.active {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    border-color: #667eea;
    color: #fff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.dashboard-tab-btn .tab-count {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 10px;
}

.dashboard-tab-btn.active .tab-count {
    background: #667eea;
    color: #fff;
}

/* History Button */
.btn-view-history {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #aaa !important;
}

.btn-view-history:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    border-color: #00ff87 !important;
}

/* Client History Modal Timeline */
.history-timeline {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
    max-height: 450px;
    overflow-y: auto;
    padding-right: 5px;
    direction: ltr; /* for custom scrollbar */
}

.history-timeline::-webkit-scrollbar { width: 4px; }
.history-timeline::-webkit-scrollbar-thumb { background: #333; border-radius: 10px; }

.history-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 16px;
    position: relative;
    direction: rtl;
}

.history-item::before {
    content: '';
    position: absolute;
    right: -10px;
    top: 20px;
    width: 2px;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
}

.history-date-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.history-date {
    font-size: 14px;
    font-weight: 800;
    color: #667eea;
}

.history-status {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
}

.history-notes-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.history-note {
    background: rgba(0, 0, 0, 0.2);
    padding: 10px;
    border-radius: 10px;
    border-right: 3px solid #667eea;
    font-size: 12px;
    line-height: 1.5;
    color: #ddd;
}

.history-note .note-time {
    font-size: 10px;
    color: #666;
    display: block;
    margin-bottom: 4px;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 600px) {
    .specialist-dashboard-content {
        max-height: 95vh;
        border-radius: 20px;
    }
    .specialist-dashboard {
        padding: 15px;
    }
    .dashboard-modal-header {
        padding: 15px 20px;
    }
    .dashboard-header-flex {
        flex-direction: column;
        align-items: flex-start;
    }
    .dashboard-stats-bar {
        width: 100%;
        justify-content: space-between;
    }
    .dashboard-tabs {
        overflow-x: auto;
        padding-bottom: 10px;
        width: 100%;
    }
    .dashboard-tab-btn {
        flex-shrink: 0;
        padding: 8px 15px;
    }
}


