/* Estilos generales */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Barra de progreso */
.progress-bar {
    height: 20px;
    background-color: #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
    margin-top: 1rem;
}

.progress-fill {
    height: 100%;
    background-color: #3b82f6;
    transition: width 0.3s ease;
}

/* Tarjetas de puntuación */
.score-card {
    transition: all 0.3s ease;
    background-color: white;
    border-radius: 0.5rem;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.score-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Spinner de carga */
.loading-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Feedback */
.positive-feedback {
    background-color: #f0fdf4;
    border-left: 4px solid #10b981;
    color: #065f46;
}

.improvement-feedback {
    background-color: #fffbeb;
    border-left: 4px solid #f59e0b;
    color: #92400e;
}

/* Layout */
.split-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 768px) {
    .split-container {
        flex-direction: row;
    }
}

.transcript-section, .evaluation-section {
    flex: 1;
    padding: 1rem;
    border-radius: 0.5rem;
    background-color: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.section-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1e40af;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0.5rem;
}

/* Estilos para el checklist de evaluación */
.category-section {
    margin-bottom: 1.5rem;
    border: 1px solid #e5e7eb;
}

/* Estilos para evaluación compacta */
.evaluation-item {
    transition: all 0.2s ease;
    padding: 0px;
    margin-bottom: 0px;
    border-radius: 0.375rem;
    font-size: 0.9rem;
    width: 100%;
}

.evaluation-yes {
    background-color: #f0fdf4;
    border-left: 3px solid #10b981;
}

.evaluation-no {
    background-color: #fef2f2;
    border-left: 3px solid #ef4444;
}

.evaluation-item svg {
    flex-shrink: 0;
    height: 1rem;
    width: 1rem;
}


/* Scrollable content */
.scrollable-content {
    max-height: 500px;
    overflow-y: auto;
    padding: 0.5rem;
    background-color: #f8fafc;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    line-height: 1.6;
    white-space: pre-wrap;
}

.hidden {
    display: none;
}

/* Transcript container */
#transcriptContainer {
    background-color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
}

/* Mejoras de diseño */
.bg-blue-50 {
    background-color: #eff6ff;
}

.bg-green-50 {
    background-color: #ecfdf5;
}

.bg-yellow-50 {
    background-color: #fffbeb;
}

.bg-red-50 {
    background-color: #fef2f2;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Estilos para botones */
button {
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    outline: none;
}

button:hover {
    opacity: 0.9;
}

/* Estilos para el textarea */
#directTextInput {
    min-height: 150px;
    border: 1px solid #e5e7eb;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-family: inherit;
    resize: vertical;
}

#directTextInput:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

/* Estilo para el botón de texto */
.bg-purple-600 {
    background-color: #7c3aed;
}

.hover\:bg-purple-700:hover {
    background-color: #6d28d9;
}

/* Estilos para el dashboard */
#dashboard {
    margin-top: 2rem;
}

#emptyState {
    text-align: center;
    padding: 4rem 0;
    color: #6b7280;
}

/* Estilos para el formulario de subida */
input[type="file"] {
    border: 1px solid #e5e7eb;
    padding: 0.5rem;
    border-radius: 0.375rem;
    width: 100%;
    background-color: white;
}

select {
    border: 1px solid #e5e7eb;
    padding: 0.5rem;
    border-radius: 0.375rem;
    background-color: white;
    width: 100%;
}

/* Estilos para el gráfico */
#qualityChart {
    width: 100%;
    height: 300px;
}

/* Estilos para texto */
.text-gray-600 {
    color: #4b5563;
}

.text-gray-800 {
    color: #1f2937;
}

.font-semibold {
    font-weight: 600;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.text-green-500 {
    color: #10b981;
}

.text-red-500 {
    color: #ef4444;
}

/* Espaciado */
.mt-4 {
    margin-top: 1rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.p-3 {
    padding: 0.75rem;
}

.p-4 {
    padding: 1rem;
}

/* Flexbox */
.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.items-start {
    align-items: flex-start;
}

/* Grid */
.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Íconos */
.h-4 {
    height: 1rem;
}

.w-4 {
    width: 1rem;
}

.h-5 {
    height: 1.25rem;
}

.w-5 {
    width: 1.25rem;
}

.mr-2 {
    margin-right: 0.5rem;
}

.ml-2 {
    margin-left: 0.5rem;
}

/* Animaciones */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}