/* Estilos base y reset */
body {
    font-family: system-ui, -apple-system, sans-serif;
    display: flex;
    height: 100vh;
    background-color: #f4f4f9;
    margin: 0;
    overflow: hidden;
    /* Evita scroll en todo el cuerpo, se maneja por secciones */
}

/* --- ESTILOS DEL MENÚ LATERAL --- */
.sidebar {
    width: 250px;
    background-color: #2c3e50;
    /* Color oscuro profesional */
    color: white;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.sidebar-header {
    padding: 20px;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    background-color: #1a252f;
    border-bottom: 1px solid #34495e;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    padding-top: 10px;
}

.sidebar-nav a {
    color: #bdc3c7;
    text-decoration: none;
    padding: 15px 20px;
    display: block;
    transition: background-color 0.3s, color 0.3s;
    border-left: 4px solid transparent;
}

.sidebar-nav a:hover {
    background-color: #34495e;
    color: white;
}

.sidebar-nav a.active {
    background-color: #34495e;
    color: white;
    border-left-color: #ff6d5a;
    /* Acento visual basado en tu botón */
}

/* --- ESTILOS DEL CONTENEDOR PRINCIPAL --- */
.main-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-y: auto;
    /* Permite scroll solo en el contenido si es muy alto */
}

.container {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

h2 {
    margin-top: 0;
    color: #333;
}

.file-input {
    margin-bottom: 1.5rem;
    width: 100%;
}

button {
    background-color: #ff6d5a;
    color: white;
    border: none;
    padding: 12px 15px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
    font-weight: bold;
    transition: background 0.3s;
}

button:hover {
    background-color: #e55b48;
}

button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.status {
    margin-top: 1rem;
    padding: 10px;
    display: none;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
}

.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* --- DISEÑO RESPONSIVO --- */
@media (max-width: 768px) {
    body {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        flex-direction: column;
        height: auto;
    }

    .sidebar-nav {
        flex-direction: row;
        justify-content: space-around;
        flex-wrap: wrap;
        padding-top: 0;
    }

    .sidebar-nav a {
        padding: 10px;
        border-left: none;
        border-bottom: 3px solid transparent;
        text-align: center;
        flex: 1;
    }

    .sidebar-nav a.active {
        border-left-color: transparent;
        border-bottom-color: #ff6d5a;
    }
}
