body { font-family: 'Plus Jakarta Sans', sans-serif; background: #f8fafc; color: #334155; }
h1, h2, h3, h4, h5 { font-family: 'Playfair Display', serif; }
.glass { background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px); }
.hero-bg { background: linear-gradient(rgba(15, 118, 110, 0.9), rgba(13, 148, 136, 0.8)), url('https://images.unsplash.com/photo-1629909613654-28e377c37b09?auto=format&fit=crop&q=80'); background-size: cover; background-position: center; }
.card-shadow { box-shadow: 0 10px 40px -10px rgba(0,0,0,0.08); }
.input-field { transition: all 0.2s; }
.input-field:focus { box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.1); border-color: #0d9488; }

/* Animation Classes */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.animate-fade { animation: fadeIn 0.6s ease-out forwards; }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
::-webkit-scrollbar-track { background: transparent; }

/* Tooltip Styles */
[data-tooltip] { position: relative; }
[data-tooltip]:hover::before, [data-tooltip]:focus::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 10px;
    background: #1e293b;
    color: white;
    font-size: 11px;
    font-weight: 600;
    border-radius: 6px;
    white-space: nowrap;
    pointer-events: none;
    margin-bottom: 8px;
    z-index: 50;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    opacity: 0;
    animation: fadeInTooltip 0.2s forwards;
}
[data-tooltip]:hover::after, [data-tooltip]:focus::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #1e293b;
    margin-bottom: -4px;
    opacity: 0;
    animation: fadeInTooltip 0.2s forwards;
}
@keyframes fadeInTooltip { to { opacity: 1; transform: translateX(-50%) translateY(-2px); } }

/* Validation Styles */
.input-error { 
    border-color: #ef4444 !important; 
    background-color: #fef2f2 !important; 
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23ef4444'%3e%3cpath fill-rule='evenodd' d='M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7 4a1 1 0 11-2 0 1 1 0 012 0zm-1-9a1 1 0 00-1 1v4a1 1 0 102 0V6a1 1 0 00-1-1z' clip-rule='evenodd'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.5em 1.5em;
    padding-right: 3rem !important;
}
.input-success { 
    border-color: #10b981 !important; 
    background-color: #f0fdf4 !important; 
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2310b981'%3e%3cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.5em 1.5em;
    padding-right: 3rem !important;
}
.error-msg { color: #ef4444; font-size: 0.75rem; margin-top: 0.25rem; font-weight: 500; display: none; }

/* Calendar Accessibility Focus */
.calendar-day:focus { outline: 2px solid #0d9488; outline-offset: 2px; z-index: 10; }

/* --- INTERACTIVE ELEMENT STYLES (Desktop vs Mobile) --- */

/* Time Slots, Filter Buttons, Date Pills */
.interactive-btn {
    transition: transform 0.1s ease, background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

/* Time Slot Specifics */
.time-btn.booked {
    background-color: #f1f5f9;
    color: #94a3b8;
    border-color: #e2e8f0;
    cursor: not-allowed;
    opacity: 0.7;
}
.time-btn.booked:hover {
    transform: none;
    box-shadow: none;
}
.time-btn.blocked {
    background-color: #fef2f2;
    color: #fca5a5;
    border-color: #fee2e2;
    cursor: not-allowed;
    opacity: 0.7;
}
.time-btn.passed {
    background-color: #f8fafc;
    color: #cbd5e1;
    border-color: #f1f5f9;
    cursor: not-allowed;
    text-decoration: line-through;
    opacity: 0.6;
}

/* Desktop Hover Effects (Only on devices that support hover) */
@media (hover: hover) {
    .interactive-btn:hover:not(:disabled) {
        transform: translateY(-2px);
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    }
    .time-btn:hover:not(:disabled) {
        border-color: #0d9488;
        color: #0f766e;
    }
}

/* Mobile Active/Tap Effects */
.interactive-btn:active:not(:disabled) {
    transform: scale(0.97);
}

/* Admin Specific Styles */
.admin-card {
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    background: white;
    transition: all 0.2s;
}
.admin-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

/* Status Filter Buttons */
.status-filter-btn {
    border-radius: 9999px;
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.status-filter-btn.active-all { background-color: #1e293b; color: white; }
.status-filter-btn:not(.active-all).btn-all:hover { background-color: #f1f5f9; color: #1e293b; }

.status-filter-btn.active-confirmed { background-color: #ccfbf1; color: #0f766e; border-color: #99f6e4; }
.status-filter-btn:not(.active-confirmed).btn-confirmed:hover { background-color: #f0fdf4; color: #0f766e; }

.status-filter-btn.active-visited { background-color: #dbeafe; color: #1e40af; border-color: #bfdbfe; }
.status-filter-btn:not(.active-visited).btn-visited:hover { background-color: #eff6ff; color: #1e40af; }

.status-filter-btn.active-cancelled { background-color: #ffe4e6; color: #be123c; border-color: #fecdd3; }
.status-filter-btn:not(.active-cancelled).btn-cancelled:hover { background-color: #fff1f2; color: #be123c; }

.status-filter-btn.active-rejected { background-color: #f1f5f9; color: #475569; border-color: #e2e8f0; }
.status-filter-btn:not(.active-rejected).btn-rejected:hover { background-color: #f8fafc; color: #475569; }

/* Calendar Styling */
.modern-calendar .calendar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.modern-calendar .weekdays { display: grid; grid-template-columns: repeat(7, 1fr); margin-bottom: 0.5rem; }
.modern-calendar .weekdays div { text-align: center; font-size: 0.75rem; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.05em; }
.modern-calendar .days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.25rem; }
.modern-calendar .day { 
    aspect-ratio: 1; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border-radius: 0.75rem; 
    font-size: 0.875rem; 
    font-weight: 600; 
    cursor: pointer; 
    transition: all 0.15s;
    position: relative;
}
.modern-calendar .day:hover:not(.disabled):not(.selected) { background-color: #f1f5f9; color: #0f172a; }
.modern-calendar .day.selected { background-color: #0d9488; color: white; box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3); }
.modern-calendar .day.today { border: 2px solid #0d9488; }
.modern-calendar .day.blocked { background-color: #fef2f2; color: #ef4444; }
.modern-calendar .day.custom { background-color: #fffbeb; color: #b45309; }
.modern-calendar .day.has-msg::after { content: ''; position: absolute; top: 4px; right: 4px; width: 4px; height: 4px; border-radius: 50%; background-color: #f59e0b; }

/* Print Styles */
@media print {
    body > * { display: none !important; }
    #print-area { display: block !important; position: absolute; top: 0; left: 0; width: 100%; background: white; z-index: 9999; }
    .print-header { text-align: center; margin-bottom: 20px; border-bottom: 2px solid #333; padding-bottom: 15px; }
    .print-header h1 { font-size: 24px; margin: 0 0 5px 0; font-family: sans-serif; color: #000; }
    .print-header p { font-size: 12px; color: #555; margin: 3px 0; font-family: monospace; }
    .print-table { width: 100%; border-collapse: collapse; font-size: 11px; font-family: sans-serif; }
    .print-table th, .print-table td { border: 1px solid #ddd; padding: 8px; text-align: left; color: #000; }
    .print-table th { background-color: #f0f0f0; font-weight: bold; text-transform: uppercase; font-size: 10px; }
    .print-table tr:nth-child(even) { background-color: #f9f9f9; }
    .details-table th { width: 30%; background-color: #f8fafc; }
    
    /* Hide URL/Page info if possible (browser dependent) */
    @page { margin: 1cm; }
}
