/* css/estilos.css */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f3f4f6;
}

.dn {
    display: none !important;
}

.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* UI Elements */
.glass-effect {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.ai-modal-overlay {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

/* Calendar UI */
.date-cell:hover:not(.disabled) {
    background-color: #e2e8f0;
    cursor: pointer;
}

.date-cell.selected {
    background-color: #0f172a !important;
    color: white !important;
}

.date-cell.disabled {
    background-color: #f1f5f9;
    color: #cbd5e1;
    cursor: not-allowed;
    text-decoration: line-through;
}

.date-cell.full {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #f87171;
}

.date-cell.blocked-date {
    background-color: #f1f5f9;
    color: #94a3b8;
    background-image: repeating-linear-gradient(45deg, transparent, transparent 5px, #e2e8f0 5px, #e2e8f0 10px);
    cursor: not-allowed;
}

.date-cell.promo {
    border: 2px solid #fbbf24;
    position: relative;
}

.date-cell.promo::after {
    content: '★';
    position: absolute;
    top: -5px;
    right: -5px;
    color: #d97706;
    font-size: 10px;
}

.slot-btn.selected {
    background-color: #0f172a;
    color: white;
    border-color: #0f172a;
}

/* Loader */
#app-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0f172a;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    transition: opacity 0.5s ease;
}

.loader {
    border: 4px solid rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border-left-color: #10b981;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Markdown Styles */
.ai-response-box ul {
    list-style-type: disc;
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

.ai-response-box p {
    margin-bottom: 0.5rem;
}

/* Panel admin: citas (tabla responsive, sin cambiar IDs ni lógica) */
@media (min-width: 768px) {
    #tab-appointments .appointments-table thead {
        position: sticky;
        top: 0;
        z-index: 2;
        box-shadow: 0 1px 0 0 #f1f5f9;
    }
}

@media (max-width: 767px) {
    .hidden-on-mobile {
        display: none !important;
    }
}

/* Citas móvil: filas compactas (<details>), sin marcador nativo */
#tab-appointments .appointments-mobile-item summary {
    list-style: none;
}

#tab-appointments .appointments-mobile-item summary::-webkit-details-marker {
    display: none;
}

#tab-appointments .appointments-mobile-item summary .fa-chevron-down {
    transition: transform 0.2s ease;
}

#tab-appointments .appointments-mobile-item[open] summary .fa-chevron-down {
    transform: rotate(180deg);
}