/* Estilos generales */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.5;
}

/* Sidebar y navegación */
.sidebar-toggle {
    display: none;
}

/* Mensajes de chat */
.message {
    display: flex;
    padding: 1.5rem;
    width: 100%;
    transition: background-color 0.3s ease;
}

.user-message {
    background-color: #f0f7ff;
    border-top: 1px solid rgba(99, 102, 241, 0.05);
    border-bottom: 1px solid rgba(99, 102, 241, 0.05);
}

.bot-message {
    background-color: #f8fafb;
    border-top: 1px solid rgba(16, 163, 127, 0.05);
    border-bottom: 1px solid rgba(16, 163, 127, 0.05);
}

.message-inner {
    max-width: 48rem;
    margin: 0 auto;
    display: flex;
    gap: 1.5rem;
    width: 100%;
}

.avatar {
    width: 38px;
    height: 38px;
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.user-avatar {
    background-color: #6366f1;
}

.bot-avatar {
    background-color: #10a37f;
}

.message-content {
    flex-grow: 1;
    word-break: break-word;
    overflow-wrap: break-word;
    color: #333;
    line-height: 1.6;
    font-size: 1rem;
}

/* Componente de calendario */
.calendar-container {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.25rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    overflow: hidden;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.time-slot {
    background-color: #f9fafb;
    border-radius: 8px;
    padding: 10px 6px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #e5e7eb;
    font-size: 0.9rem;
    font-weight: 500;
}

.time-slot:hover {
    background-color: #ebfdf5;
    border-color: #10a37f;
    color: #10a37f;
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(16, 163, 127, 0.15);
}

.time-slot.selected {
    background-color: #10a37f;
    color: white;
    border-color: #10a37f;
    box-shadow: 0 4px 8px rgba(16, 163, 127, 0.25);
}

/* Botones de opciones */
.options-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.option-button {
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px 18px;
    color: #374151;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.option-button:hover {
    background-color: #f9fafb;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.option-button:active, .option-button.selected {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.option-button.selected {
    background-color: #10a37f;
    color: white;
    border-color: #10a37f;
}

.option-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Spinner de carga */
.loading-spinner {
    display: flex;
    align-items: center;
    column-gap: 0.6rem;
}

.spinner {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #10a37f;
    animation: bounce 1.4s infinite ease-in-out both;
}

.spinner:nth-child(1) {
    animation-delay: -0.32s;
}

.spinner:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {
    0%, 80%, 100% { 
        transform: scale(0);
        opacity: 0.6;
    }
    40% { 
        transform: scale(1);
        opacity: 1;
    }
}

/* Escala para preguntas */
.scale-container {
    display: flex;
    justify-content: space-between;
    margin-top: 1.25rem;
    padding: 0.5rem;
    background-color: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.scale-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 8px 0;
    border-radius: 8px;
    transition: all 0.2s ease;
    width: 20%;
}

.scale-option:hover {
    background-color: #f3f4f6;
}

.scale-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    border: 2px solid #e5e7eb;
    color: #374151;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.scale-circle:hover {
    background-color: #ebfdf5;
    border-color: #10a37f;
    color: #10a37f;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(16, 163, 127, 0.15);
}

.scale-circle.selected {
    background-color: #10a37f;
    color: white;
    border-color: #10a37f;
    box-shadow: 0 4px 8px rgba(16, 163, 127, 0.25);
}

/* Pantalla de inicio */
.welcome-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    text-align: center;
    height: 100%;
    background: linear-gradient(to bottom, #f9fafb 0%, #f3f4f6 100%);
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.welcome-logo {
    width: 300px;
    max-width: 100%;
    height: auto;
    margin-bottom: 2rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
    animation: logoEnter 1s ease-out;
}

@keyframes logoEnter {
    0% { opacity: 0; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

.welcome-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #111827;
    animation: textEnter 0.8s ease-out 0.2s both;
}

@keyframes textEnter {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.welcome-subtitle {
    font-size: 1.2rem;
    color: #4b5563;
    margin-bottom: 2.5rem;
    max-width: 600px;
    line-height: 1.6;
    animation: textEnter 0.8s ease-out 0.4s both;
}

.welcome-examples {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    width: 100%;
    max-width: 1000px;
    animation: examplesEnter 0.8s ease-out 0.6s both;
}

@keyframes examplesEnter {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

.example-card {
    background-color: white;
    border-radius: 0.75rem;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.example-card:hover {
    background-color: #f9fafb;
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-color: #d1d5db;
}

.example-card:active {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

.example-title {
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #111827;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.example-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: #10a37f;
    border-radius: 3px;
}

.example-text {
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.5;
}

/* Responsivo */
@media (max-width: 768px) {
    .calendar-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .sidebar-toggle {
        display: block;
    }
    
    .message {
        padding: 1rem;
    }
    
    .welcome-examples {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .calendar-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .message {
        padding: 0.75rem;
    }
    
    .options-container {
        flex-direction: column;
    }
}

/* Logo styling */
.welcome-logo {
    width: 280px;
    max-width: 100%;
    height: auto;
    margin-bottom: 1.5rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Sidebar logo */
aside .h-8.mr-2 {
    height: 2rem;
    transition: transform 0.2s ease;
}

aside .flex.items-center:hover .h-8.mr-2 {
    transform: scale(1.05);
}

/* Mobile logo */
nav .h-8.mr-2 {
    height: 2rem;
}

/* Mejorar el input de usuario */
#user-input {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

#user-input:focus {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #a5b4fc;
}

/* Botón de enviar mensaje */
#chat-form button {
    transition: transform 0.2s ease;
}

#chat-form button:hover {
    transform: translateY(-50%) scale(1.05);
}

/* Mejorar la visibilidad del scroll */
#chat-container {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #d1d5db transparent;
}

#chat-container::-webkit-scrollbar {
    width: 8px;
}

#chat-container::-webkit-scrollbar-track {
    background: transparent;
}

#chat-container::-webkit-scrollbar-thumb {
    background-color: #d1d5db;
    border-radius: 4px;
}

/* Añadir un poco de espacio al final del chat para los botones */
.message:last-child {
    margin-bottom: 16px;
} 