/* ============================================================================
   AI SCHEDULER - CUSTOM STYLES
   ============================================================================ */

   :root {
    --primary-color: #0d6efd;
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --secondary-color: #6c757d;
    --info-color: #0dcaf0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

/* ============================================================================
   NAVBAR
   ============================================================================ */

.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* ============================================================================
   CARDS
   ============================================================================ */

.card {
    border: none;
    border-radius: 10px;
    margin-bottom: 20px;
}

.card-header {
    border-radius: 10px 10px 0 0 !important;
    font-weight: 600;
}

/* ============================================================================
   CALENDAR CUSTOMIZATION
   ============================================================================ */

#calendar {
    max-width: 100%;
    margin: 0 auto;
}

.fc {
    /* FullCalendar base styles */
}

.fc-daygrid-day {
    cursor: pointer;
    transition: background-color 0.2s;
}

.fc-daygrid-day:hover {
    background-color: #f0f0f0;
}

/* Calendar Event Colors */
.fc-event {
    border: none !important;
    padding: 2px 5px;
    border-radius: 4px;
    font-size: 0.85em;
}

.fc-event.appointment {
    background-color: #dc3545 !important;
    color: white;
}

.fc-event.available {
    background-color: #198754 !important;
    color: white;
}

.fc-event.partially-booked {
    background-color: #ffc107 !important;
    color: black;
}

.fc-event.not-working {
    background-color: #6c757d !important;
    color: white;
}

.fc-event.holiday {
    background-color: #e74c3c !important;
    color: white;
}

/* Day cell background colors */
.fc-day.available-day {
    background-color: rgba(25, 135, 84, 0.1);
}

.fc-day.partially-booked-day {
    background-color: rgba(255, 193, 7, 0.1);
}

.fc-day.fully-booked-day {
    background-color: rgba(220, 53, 69, 0.1);
}

.fc-day.not-working-day {
    background-color: rgba(108, 117, 125, 0.1);
}

.fc-day.holiday-day {
    background-color: rgba(231, 76, 60, 0.15);
}

/* ============================================================================
   BADGES
   ============================================================================ */

.badge {
    padding: 0.4em 0.6em;
    font-weight: 500;
}

/* ============================================================================
   STATISTICS CARDS
   ============================================================================ */

.stat-item {
    padding: 10px;
    border-left: 3px solid var(--primary-color);
    margin-bottom: 10px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.stat-label {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
}

.stat-success {
    border-left-color: var(--success-color);
}

.stat-warning {
    border-left-color: var(--warning-color);
}

.stat-danger {
    border-left-color: var(--danger-color);
}

.stat-info {
    border-left-color: var(--info-color);
}

/* ============================================================================
   LOADING SPINNER
   ============================================================================ */

#loadingIndicator {
    padding: 20px;
}

/* ============================================================================
   MODAL
   ============================================================================ */

.modal-header {
    background-color: var(--primary-color);
    color: white;
}

.modal-header .btn-close {
    filter: invert(1);
}

/* ============================================================================
   APPOINTMENT LIST IN MODAL
   ============================================================================ */

.appointment-item {
    padding: 12px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    margin-bottom: 10px;
    background-color: #f8f9fa;
}

.appointment-time {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.appointment-client {
    color: #333;
    font-weight: 500;
}

.appointment-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-scheduled {
    background-color: #cfe2ff;
    color: #084298;
}

.status-rendered {
    background-color: #d1e7dd;
    color: #0f5132;
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */

@media (max-width: 768px) {
    .fc-toolbar {
        flex-direction: column;
        gap: 10px;
    }
    
    .fc-toolbar-chunk {
        margin: 5px 0;
    }
}

/* ============================================================================
   UTILITY CLASSES
   ============================================================================ */

.text-muted-light {
    color: #adb5bd !important;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.shadow-hover {
    transition: box-shadow 0.3s;
}

.shadow-hover:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important;
}


/* ============================================================================
   RECURRING APPOINTMENTS
   ============================================================================ */

   #recurringOptions {
    animation: slideDown 0.3s ease-out;
}

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

.btn-check:checked + .btn-outline-primary {
    background-color: var(--primary-color);
    color: white;
}

#recurrencePreview {
    border-left: 4px solid var(--info-color);
}
/* ============================================================================
   AI SUGGESTIONS
   ============================================================================ */

   .suggestion-card {
    transition: all 0.3s ease;
}

.suggestion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15) !important;
}

.schedule-details {
    border-left: 4px solid var(--success-color);
}

#aiLoadingIndicator {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.badge {
    font-weight: 500;
}

.suggestion-card .card-header.bg-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
}

/* Distance badge styling */
.badge.bg-primary {
    font-size: 0.85rem;
    padding: 0.4rem 0.7rem;
}

/* Make distance stand out in provider list */
.suggestion-card .badge .fa-map-marker-alt {
    margin-right: 4px;
}

/* Optional: Add hover effect for suggestion cards */
.suggestion-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.suggestion-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}
