/* Estilos generales */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5; 
    display: flex;
    min-height: 100vh;
}

/* Menú lateral izquierdo */
.sidebar {
    width: 250px;
    background: #2c3e50;
    color: white;
    padding: 20px 0;
    height: 100vh;
    position: fixed;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.sidebar h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.5em;
    border-bottom: 1px solid #34495e;
    padding-bottom: 10px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar li {
    padding: 15px 20px;
    border-bottom: 1px solid #34495e;
    transition: background 0.3s;
}

.sidebar li:hover {
    background: #34495e;
    cursor: pointer;
}

.sidebar a {
    color: white;
    text-decoration: none;
    display: block;
}

/* Barra superior de mensajes */
.notification-bar {
    background: #3498db;
    color: white;
    padding: 10px 20px;
    position: fixed;
    top: 0;
    left: 250px;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.notification-bar .alert {
    background: #e74c3c;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 0.9em;
}

/* Contenido principal */
.main-content {
    margin-left: 250px;
    padding: 70px 20px 20px;
    width: calc(100% - 250px);
}

.container {
    background: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

/* Formulario y botones */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input[type="file"] {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

button {
    background: #2c3e50;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background: #34495e;
}

/* Resultados de transcripción */
.transcription-result {
    margin-top: 20px;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 4px;
}

.download-links {
    margin-top: 15px;
}

.download-links a {
    color: #3498db;
    text-decoration: none;
    margin-right: 10px;
    padding: 5px 10px;
    border: 1px solid #3498db;
    border-radius: 3px;
    transition: all 0.3s;
}

.download-links a:hover {
    background: #3498db;
    color: white;
}

/* Estilos para transcribe.php */
.transcription-container {
    background: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.transcription-text {
    background: #f9f9f9;
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 4px;
    white-space: pre-wrap;
    font-family: monospace;
    max-height: 300px;
    overflow-y: auto;
}

.download-links {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

/* Estilo base para ambos botones (azul con texto blanco) */
.download-btn {
    background: #3498db;  /* Azul principal */
    color: white !important;       /* Texto blanco */
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Efecto hover (azul más oscuro) */
.download-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Estilo para íconos */
.download-btn i {
    font-size: 16px;
}

/* Spinner para el botón */
.fa-spin {
    animation: spin 1s linear infinite;
}

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

/* Botón PDF (rojo) */
.download-btn.pdf {
    background: #e74c3c;
}

/* Botón TXT (verde) */
.download-btn.txt {
    background: #2ecc71;
}

/* Hover para ambos */
.download-btn:hover {
    opacity: 0.9;
}

#submitBtn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

#spinner {
    margin-left: 8px;
    font-size: 14px;
}