/* Clinic Jawad - Main Stylesheet */

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --success-color: #27ae60;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --info-color: #17a2b8;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
}

/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

.min-vh-80 {
    min-height: 80vh;
}

/* Card Styles */
.card {
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.card-header {
    border-radius: 10px 10px 0 0 !important;
    font-weight: 600;
}

/* Button Styles */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #1a252f;
    border-color: #1a252f;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Navbar Styles */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar.bg-primary {
    background-color: #307BC4 !important;
}

/* Form Styles */
.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 0.75rem 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.25);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Table Styles */
.table {
    border-radius: 10px;
    overflow: hidden;
}

.table thead th {
    background-color: var(--primary-color);
    color: white;
    border: none;
    font-weight: 600;
}

.table tbody tr:hover {
    background-color: rgba(52, 152, 219, 0.1);
}

/* Badge Styles */
.badge {
    padding: 0.5em 0.8em;
    border-radius: 20px;
    font-weight: 500;
}

/* Alert Styles */
.alert {
    border-radius: 10px;
    border: none;
}

/* Calendar Styles */
.calendar-day {
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.calendar-day:hover {
    background-color: rgba(52, 152, 219, 0.1);
    transform: scale(1.05);
}

.calendar-day.available {
    background-color: rgba(39, 174, 96, 0.1);
    color: var(--success-color);
}

.calendar-day.unavailable {
    background-color: rgba(231, 76, 60, 0.1);
    color: var(--danger-color);
    cursor: not-allowed;
}

.calendar-day.selected {
    background-color: var(--secondary-color);
    color: white;
}

/* Time Slot Styles */
.time-slot {
    min-width: 80px;
    margin: 2px;
}

/* Dashboard Stats */
.display-6 {
    font-weight: 700;
    color: var(--primary-color);
}

/* Footer Styles */
footer {
    margin-top: auto;
}

footer a {
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--secondary-color) !important;
}

/* Modal Styles */
.modal-content {
    border-radius: 15px;
    border: none;
}

.modal-header {
    border-radius: 15px 15px 0 0;
    background-color: var(--primary-color);
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2.5rem;
    }
    
    .display-6 {
        font-size: 1.5rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
}

/* Animation for loading */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2980b9;
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .card {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }
}

/* Utility Classes */
.text-shadow {
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.box-shadow {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.hover-lift {
    transition: transform 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-3px);
}

/* Status Colors */
.status-confirmed {
    color: var(--success-color);
    background-color: rgba(39, 174, 96, 0.1);
}

.status-pending {
    color: var(--warning-color);
    background-color: rgba(243, 156, 18, 0.1);
}

.status-cancelled {
    color: var(--danger-color);
    background-color: rgba(231, 76, 60, 0.1);
}

.status-completed {
    color: var(--info-color);
    background-color: rgba(23, 162, 184, 0.1);
}

/* New Calendar Styles for prendre_rdv.php */
.calendar-container {
    min-height: 600px;
    max-height: 800px;
    background-color: white;
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Ensure calendar fits within container */
#calendarContainer {
    height: 100%;
}

/* Remove extra padding from card body in calendar */
.calendar-container .card {
    border: none;
    box-shadow: none;
}

.calendar-container .card-body {
    padding: 0.5rem;
}

.calendar-wrapper {
    animation: fadeIn 0.5s ease;
}

/* Table-based calendar styles - Fixed alignment */
#calendarTable {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

#calendarTable th {
    width: 14.28%; /* 100% / 7 days */
    padding: 10px 5px;
    font-weight: 600;
    background-color: #d35400; /* Orange foncé */
    color: white;
    text-align: center;
    border: 1px solid #dee2e6;
}

#calendarTable th.bg-info {
    background-color: #e67e22 !important; /* Orange plus clair pour aujourd'hui */
    color: white;
}

#calendarTable td {
    height: 70px;
    vertical-align: top;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #dee2e6;
    text-align: center;
    padding: 5px;
    position: relative;
}

#calendarTable td.calendar-day:hover:not(.past):not(.unavailable) {
    background-color: rgba(52, 152, 219, 0.1);
}

#calendarTable td.today {
    border: 2px solid var(--secondary-color);
    background-color: rgba(52, 152, 219, 0.05);
}

#calendarTable td.selected {
    background-color: var(--secondary-color) !important;
    color: white;
}

#calendarTable td.available {
    background-color: rgba(39, 174, 96, 0.1);
}

#calendarTable td.partial {
    background-color: rgba(243, 156, 18, 0.1);
}

#calendarTable td.unavailable {
    background-color: rgba(231, 76, 60, 0.1);
    cursor: not-allowed;
}

#calendarTable td.past {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f8f9fa;
}

#calendarTable td .day-number {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 2px;
    display: block;
}

#calendarTable td .day-status {
    font-size: 0.75rem;
    position: absolute;
    bottom: 3px;
    left: 0;
    right: 0;
    text-align: center;
}

/* Ensure table fits within container */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Fix calendar container width */
.calendar-container .card-body {
    padding: 1rem;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 10px;
    text-align: center;
    font-weight: 600;
    color: var(--primary-color);
}

.calendar-weekday {
    padding: 10px;
    background-color: rgba(52, 152, 219, 0.1);
    border-radius: 8px;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.calendar-day {
    aspect-ratio: 1;
    padding: 10px;
    border: 2px solid transparent;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.calendar-day.empty {
    background-color: transparent;
    box-shadow: none;
    cursor: default;
}

.calendar-day.past {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f8f9fa;
}

.calendar-day.today {
    border-color: var(--secondary-color);
    background-color: rgba(52, 152, 219, 0.1);
}

.calendar-day.selected {
    background-color: var(--secondary-color);
    color: white;
    transform: scale(1.05);
}

.calendar-day.available {
    background-color: rgba(39, 174, 96, 0.15);
    border-color: rgba(39, 174, 96, 0.3);
}

.calendar-day.partial {
    background-color: rgba(243, 156, 18, 0.15);
    border-color: rgba(243, 156, 18, 0.3);
}

.calendar-day.unavailable {
    background-color: rgba(231, 76, 60, 0.15);
    border-color: rgba(231, 76, 60, 0.3);
    cursor: not-allowed;
}

.calendar-day:hover:not(.empty):not(.past):not(.unavailable) {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.day-number {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.day-status {
    font-size: 0.8rem;
}

/* Time slots grid */
.time-slots-grid {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 5px;
}

.time-hour-group {
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.time-hour-group:last-child {
    border-bottom: none;
}

.time-hour-header {
    padding: 5px 10px;
    background-color: rgba(52, 152, 219, 0.1);
    border-radius: 6px;
    margin-bottom: 5px;
}

.time-slots-list {
    min-height: 50px;
}

.time-slot-btn {
    min-width: 70px;
    transition: all 0.2s ease;
}

.time-slot-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.time-slot-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

/* Calendar legend */
.calendar-legend {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    margin-right: 8px;
    border: 1px solid rgba(0,0,0,0.1);
}

.legend-color.available {
    background-color: rgba(39, 174, 96, 0.3);
}

.legend-color.partial {
    background-color: rgba(243, 156, 18, 0.3);
}

.legend-color.unavailable {
    background-color: rgba(231, 76, 60, 0.3);
}

.legend-color.selected {
    background-color: var(--secondary-color);
}

.legend-color.today {
    background-color: rgba(52, 152, 219, 0.3);
    border-color: var(--secondary-color);
}

.legend-text {
    font-size: 0.9rem;
    color: #666;
}

/* Responsive calendar */
@media (max-width: 768px) {
    .calendar-grid {
        gap: 4px;
    }
    
    .calendar-day {
        padding: 5px;
    }
    
    .day-number {
        font-size: 1rem;
    }
    
    .time-slot-btn {
        min-width: 60px;
        padding: 5px 8px;
        font-size: 0.9rem;
    }
}

/* Simple table-based calendar for prendre_rdv.php */
.calendar-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.calendar-table th {
    background-color: #2c3e50;
    font-weight: 600;
    text-align: center;
    padding: 14px 8px;
    border: none;
    width: 14.28%; /* 100% / 7 */
    color: white;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calendar-table th:first-child {
    border-top-left-radius: 12px;
}

.calendar-table th:last-child {
    border-top-right-radius: 12px;
}

.calendar-table td {
    height: 85px;
    vertical-align: top;
    text-align: center;
    padding: 10px 5px;
    border: 1px solid #e9ecef;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background-color: white;
}

.calendar-table td:hover:not(.past-day):not(.bg-danger) {
    background-color: rgba(52, 152, 219, 0.15) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.calendar-table td.today-cell {
    background-color: #e8f4fe !important;
    border: 2px solid #3498db !important;
    font-weight: bold;
    position: relative;
}

.calendar-table td.today-cell::before {
    content: '';
    position: absolute;
    top: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    background-color: #3498db;
    border-radius: 50%;
}

.calendar-table td.selected-day {
    background-color: #3498db !important;
    color: white !important;
    border-color: #2980b9 !important;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
    transform: scale(1.02);
}

.calendar-table td.selected-day .day-number {
    color: white;
}

.calendar-table td.past-day {
    opacity: 0.5;
    cursor: not-allowed !important;
    background-color: #f8f9fa !important;
}

/* Availability status */
.calendar-table td.bg-success {
    background-color: #d5edda !important;
    color: #155724;
    border-color: #c3e6cb !important;
}

.calendar-table td.bg-success:hover:not(.past-day) {
    background-color: #c3e6cb !important;
}

.calendar-table td.bg-warning {
    background-color: #fff3cd !important;
    color: #856404;
    border-color: #ffeaa7 !important;
}

.calendar-table td.bg-warning:hover:not(.past-day) {
    background-color: #ffeaa7 !important;
}

.calendar-table td.bg-danger {
    background-color: #f8d7da !important;
    color: #721c24;
    cursor: not-allowed;
    border-color: #f5c6cb !important;
}

.calendar-table td .day-number {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: #2c3e50;
    transition: color 0.3s ease;
}

.calendar-table td .day-status {
    font-size: 0.85rem;
    position: absolute;
    bottom: 8px;
    left: 0;
    right: 0;
    text-align: center;
}

.calendar-table td .day-status i {
    font-size: 1rem;
}

/* Calendar container */
.calendar-table-container {
    border-radius: 12px;
    border: 1px solid #dee2e6;
    background-color: white;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    padding: 0;
}

/* Time slots */
.time-slots-card {
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #dee2e6;
}

.time-slots-card .card-header {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    font-weight: 600;
    padding: 14px 20px;
    border-bottom: none;
}

.time-slots-card .card-body {
    max-height: 420px;
    overflow-y: auto;
    padding: 20px;
}

/* Enhanced calendar header */
.calendar-header {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    padding: 20px;
    border-radius: 12px 12px 0 0;
    margin-bottom: 0;
}

.calendar-header h5 {
    margin: 0;
    font-weight: 600;
    font-size: 1.3rem;
}

.calendar-header .legend {
    margin-top: 15px;
}

.calendar-header .legend .badge {
    padding: 8px 12px;
    font-size: 0.85rem;
    border-radius: 20px;
    margin-right: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Calendar navigation buttons */
#prevMonthBtn, #nextMonthBtn, #currentMonthBtn {
    border-radius: 8px;
    padding: 8px 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid #3498db;
}

#prevMonthBtn:hover, #nextMonthBtn:hover {
    background-color: #3498db;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

#currentMonthBtn {
    background-color: #3498db;
    color: white;
    border-color: #2980b9;
}

#currentMonthBtn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(41, 128, 185, 0.3);
}

/* Calendar instructions */
#calendarInstructions {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 12px 15px;
    border-left: 4px solid #3498db;
    font-size: 0.95rem;
    margin-top: 10px;
}

/* Month/Year display */
#monthYear {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

/* Simple calendar wrapper */
.simple-calendar {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Enhanced time slots styling */
.time-slots-grid {
    max-height: 350px;
    overflow-y: auto;
    padding-right: 10px;
    margin-top: 10px;
}

.time-hour-group {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.time-hour-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.time-hour-header {
    padding: 10px 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    margin-bottom: 10px;
    font-weight: 600;
    color: #2c3e50;
    border-left: 4px solid #3498db;
}

.time-slots-list {
    min-height: 60px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.time-slot-btn {
    min-width: 80px;
    padding: 10px 12px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    text-align: center;
}

.time-slot-btn:not(:disabled):hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.time-slot-btn.btn-primary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border-color: #2980b9;
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.time-slot-btn.btn-outline-primary {
    border-color: #3498db;
    color: #3498db;
}

.time-slot-btn.btn-outline-primary:hover {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border-color: #2980b9;
}

.time-slot-btn.btn-danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    border-color: #c0392b;
}

.time-slot-btn.btn-secondary {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    border-color: #7f8c8d;
    opacity: 0.8;
}

.time-slot-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
    transform: none !important;
    box-shadow: none !important;
}

/* Selection confirmation */
#selectionConfirmation {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 2px solid #28a745;
    border-radius: 10px;
    padding: 15px;
    margin-top: 15px;
    animation: fadeIn 0.5s ease;
}

#selectedTimeText {
    font-weight: 600;
    color: #155724;
}

/* Date selection info */
#dateSelectionInfo {
    padding: 30px 20px;
    text-align: center;
}

#dateSelectionInfo .text-muted {
    font-size: 1rem;
    color: #6c757d;
}

#dateSelectionInfo i {
    color: #3498db;
    margin-bottom: 15px;
}

/* Selected date title */
#selectedDateTitle {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
    margin-bottom: 20px;
}

/* Responsive calendar improvements */
@media (max-width: 992px) {
    .calendar-table td {
        height: 70px;
        padding: 8px 3px;
    }
    
    .calendar-table td .day-number {
        font-size: 1.1rem;
    }
    
    .calendar-table th {
        padding: 10px 5px;
        font-size: 0.85rem;
    }
    
    .time-slot-btn {
        min-width: 70px;
        padding: 8px 10px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .calendar-table td {
        height: 60px;
        padding: 6px 2px;
    }
    
    .calendar-table td .day-number {
        font-size: 1rem;
        margin-bottom: 3px;
    }
    
    .calendar-table td .day-status {
        font-size: 0.75rem;
        bottom: 4px;
    }
    
    .calendar-table th {
        padding: 8px 3px;
        font-size: 0.8rem;
    }
    
    .time-slot-btn {
        min-width: 65px;
        padding: 6px 8px;
        font-size: 0.85rem;
    }
    
    #monthYear {
        font-size: 1.2rem;
    }
    
    .calendar-header h5 {
        font-size: 1.1rem;
    }
    
    .time-slots-card .card-body {
        padding: 15px;
    }
}

@media (max-width: 576px) {
    .calendar-table td {
        height: 50px;
        padding: 4px 1px;
    }
    
    .calendar-table td .day-number {
        font-size: 0.9rem;
    }
    
    .calendar-table th {
        padding: 6px 2px;
        font-size: 0.75rem;
    }
    
    .time-slot-btn {
        min-width: 60px;
        padding: 5px 6px;
        font-size: 0.8rem;
    }
    
    .time-hour-header {
        padding: 8px 10px;
        font-size: 0.9rem;
    }
    
    #calendarInstructions {
        font-size: 0.85rem;
        padding: 10px;
    }
}

/* Loading animations */
@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.loading-pulse {
    animation: pulse 1.5s infinite ease-in-out;
}

/* Smooth transitions for calendar updates */
.calendar-table-container {
    transition: all 0.3s ease;
}

/* Hover effects for better UX */
.calendar-table td:not(.past-day):not(.bg-danger) {
    cursor: pointer;
}

.calendar-table td:not(.past-day):not(.bg-danger):hover .day-number {
    color: #3498db;
}

/* Weekend styling */
.calendar-table td:nth-child(6), /* Saturday */
.calendar-table td:nth-child(7) { /* Sunday */
    background-color: #f9f9f9;
}

.calendar-table td.bg-success:nth-child(6),
.calendar-table td.bg-success:nth-child(7),
.calendar-table td.bg-warning:nth-child(6),
.calendar-table td.bg-warning:nth-child(7),
.calendar-table td.bg-danger:nth-child(6),
.calendar-table td.bg-danger:nth-child(7) {
    background-color: inherit !important;
}

/* Print styles for calendar */
@media print {
    .calendar-table {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
    
    .calendar-table th {
        background-color: #f0f0f0 !important;
        color: #000 !important;
        border: 1px solid #ddd !important;
    }
    
    .calendar-table td {
        border: 1px solid #ddd !important;
    }
    
    .time-slots-card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}

/* Additional animations and effects for calendar */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate__fadeInUp {
    animation: fadeInUp 0.5s ease;
}

/* Fix for vertical layout - calendar container */
.simple-calendar .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
}

.simple-calendar .col-md-8,
.simple-calendar .col-md-4 {
    padding: 0 10px;
}

.simple-calendar .col-md-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
}

.simple-calendar .col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

/* Ensure calendar table fits properly */
.calendar-table-container {
    height: 100%;
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

#calendarDaysContainer {
    flex: 1;
    overflow: hidden;
}

/* Fix calendar table height */
.calendar-table {
    height: 100%;
}

.calendar-table tbody {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.calendar-table tr {
    flex: 1;
    display: flex;
}

.calendar-table td {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    height: auto;
}

/* Adjust day number and status positioning */
.calendar-table td .day-number {
    flex: 0 0 auto;
}

.calendar-table td .day-status {
    flex: 0 0 auto;
    margin-top: auto;
}

/* Responsive adjustments for better vertical layout */
@media (max-width: 992px) {
    .simple-calendar .col-md-8,
    .simple-calendar .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 20px;
    }
    
    .calendar-table-container {
        min-height: 350px;
    }
    
    .time-slots-card {
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .simple-calendar .row {
        flex-direction: column;
    }
    
    .calendar-table-container {
        min-height: 300px;
    }
    
    .calendar-table td {
        height: 60px;
        padding: 5px 2px;
    }
    
    .time-slots-card {
        min-height: 250px;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(52, 152, 219, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0);
    }
}

.animate__pulse {
    animation: pulse 0.5s ease;
}

/* Hover effect for time slots */
.time-slot-btn.hover-effect {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Selection ring effect */
.time-slot-btn[style*="box-shadow"] {
    animation: selectionRing 0.5s ease;
}

@keyframes selectionRing {
    0% {
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.7);
    }
    100% {
        box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.3), 0 6px 12px rgba(0, 0, 0, 0.15);
    }
}

/* Enhanced calendar day hover */
.calendar-table td:not(.past-day):not(.bg-danger):hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.calendar-table td:not(.past-day):not(.bg-danger):hover .day-number {
    color: #3498db;
    transform: scale(1.1);
    transition: all 0.3s ease;
}

/* Success state for form button */
.btn-success {
    background: linear-gradient(135deg, #27ae60 0%, #219653 100%);
    border-color: #1e8449;
}

.btn-success:hover {
    background: linear-gradient(135deg, #219653 0%, #1e8449 100%);
    border-color: #196f3d;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(39, 174, 96, 0.3);
}

/* Loading state improvements */
.spinner-border.text-primary {
    border-width: 3px;
}

/* Calendar day selection animation */
.calendar-table td.selected-day {
    animation: daySelection 0.5s ease;
}

@keyframes daySelection {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1.02);
    }
}

/* Responsive adjustments for animations */
@media (prefers-reduced-motion: reduce) {
    .animate__animated,
    .calendar-table td,
    .time-slot-btn,
    .btn-success {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.7);
}

.whatsapp-float i {
    margin: 0;
}

/* Responsive WhatsApp button */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 25px;
        bottom: 20px;
        right: 20px;
    }
}

/* Custom color for Notre Cabinet text */
.card-title.text-primary,
.display-4.text-primary {
    color: #307BC4 !important;
}