/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Estilos para botones */
.btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: #34495e;
    color: white;
}

.btn-secondary:hover {
    background-color: #626669;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #dc2250;
}

.btn-warning {
    background-color: #f39c12;
    color: white;
}

.btn-warning:hover {
    background-color: #e0a781;
}

.btn-success {
    background-color: #28a745;
    color: white;
}

.btn-success:hover {
    background-color: #78a87d;
}

.btn-info {
    background-color: #17a2b8;
    color: white;
}

.btn-info:hover {
    background-color: #6f979e;
}
.btn-dark {
    background-color: #333;
    color: white;
}

.btn-dark:hover {
    background-color: #2c3e50;
}


.btn-sm {
    padding: 4px 8px;
    font-size: 0.8rem;
}

/* Estilos para formularios */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.answer-options label {
    display: block;
    margin: 5px 0;
    cursor: pointer;
}

.answer-options input[type="radio"],
.answer-options input[type="checkbox"] {
    margin-right: 8px;
}

/* Estilos para alertas */
.alert {
    padding: 10px 15px;
    margin-bottom: 15px;
    border-radius: 4px;
}

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

/* Estilos para tablas */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

th, td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f2f2f2;
    font-weight: bold;
}

tr:hover {
    background-color: #f5f5f5;
}

/* Estilos para el login */
.login-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.login-header {
    text-align: center;
    margin-bottom: 20px;
}

.login-header .logo {
    max-width: 100px;
    margin-bottom: 10px;
}

.login-form {
    margin-top: 20px;
}

/* Estilos para el dashboard */
.dashboard-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #28292a;
    color: white;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-small {
    max-width: 40px;
}

.dashboard-content {
    display: flex;
    flex: 1;
}

.dashboard-sidebar {
    width: 250px;
    background-color: #34495e;
    color: white;
    padding: 20px;
}

.user-info {
    margin-bottom: 20px;
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #4a6278;
}

.sidebar-nav h4 {
    margin: 15px 0 10px;
    color: #ecf0f1;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav li {
    margin: 5px 0;
}

.sidebar-nav a {
    display: block;
    padding: 8px 10px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.sidebar-nav a:hover {
    background-color: #4a6278;
}

.dashboard-main {
    flex: 1;
    padding: 20px;
    background-color: white;
}

/* Estilos para preguntas del examen */
.question-container {
    margin-bottom: 30px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.question-type-fields {
    margin: 15px 0;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.exam-form {
    margin-top: 20px;
}

.exam-info {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-content {
        flex-direction: column;
    }
    
    .dashboard-sidebar {
        width: 100%;
    }
/* Estilos adicionales */
.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

.data-table {
    margin-top: 20px;
}

.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}

.badge-success {
    background-color: #28a745;
    color: white;
}

.badge-danger {
    background-color: #dc3545;
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 10px 0;
    color: #2c3e50;
}

.stat-percent {
    font-size: 1.2rem;
    color: #7f8c8d;
}

.user-form {
    max-width: 800px;
    margin: 0 auto;
}

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

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.user-greeting {
    margin-right: 15px;
    font-weight: bold;
}

.boton-regresar {
  /* Estilos del botón (por ejemplo, fondo, padding, etc.) */
}

.icono-regresar {
  /* Estilos del icono (por ejemplo, tamaño, color, etc.) */
  /* Puedes usar un icono SVG, una imagen, o una fuente de iconos */
}

/* Estilos para la corrección manual */
.correction-form {
    margin-top: 20px;
}

.correction-table {
    width: 100%;
    border-collapse: collapse;
}

.correction-table th, .correction-table td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: left;
}

.correction-table th {
    background-color: #f5f5f5;
}

.correction-table textarea {
    width: 100%;
    min-height: 60px;
    padding: 8px;
}

.puntaje-input {
    width: 80px;
    padding: 8px;
}

.form-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

/* Estilos para la corrección manual */
.correction-form {
    margin-top: 20px;
}

.correction-table {
    width: 100%;
    border-collapse: collapse;
}

.correction-table th, .correction-table td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: left;
}

.correction-table th {
    background-color: #f5f5f5;
}

.correction-table textarea {
    width: 100%;
    min-height: 60px;
    padding: 8px;
}

.puntaje-input {
    width: 80px;
    padding: 8px;
}

.form-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.respuesta-larga {
    min-width: 100%;
    max-width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    font-family: inherit;
    line-height: 1.5;
}

}