/* 
 * SISTEMA DE DISEÑO UNIFICADO - REGISTRO SYLLABUS
 * Estilos CSS personalizados para mantener consistencia visual
 */

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --light-gray: #ecf0f1;
    --medium-gray: #bdc3c7;
    --dark-gray: #7f8c8d;
    --text-color: #2c3e50;
    --bg-color: #f8f9fa;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Header principal */
.main-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.main-header h1 {
    font-size: 2.5rem;
    font-weight: 300;
    margin: 0;
    letter-spacing: 1px;
}

.main-header .subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-top: 0.5rem;
}

/* Navegación */
.nav-breadcrumb {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

/* Cards y secciones */
.content-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(52, 73, 94, 0.1);
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Botones mejorados */
.btn-custom-primary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #2980b9 100%);
    border: none;
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.3);
}

.btn-custom-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
    color: white;
}

.btn-custom-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #229954 100%);
    border: none;
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-custom-danger {
    background: linear-gradient(135deg, var(--accent-color) 0%, #c0392b 100%);
    border: none;
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-custom-warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, #d68910 100%);
    border: none;
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

/* Tablas mejoradas */
.table-custom {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
    border: none;
}

.table-custom thead th {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    border: none;
    padding: 1rem;
    font-size: 0.95rem;
}

.table-custom tbody td {
    padding: 1rem;
    border-color: var(--light-gray);
    vertical-align: middle;
}

.table-custom tbody tr:hover {
    background-color: #f8f9fb;
}

/* Formularios mejorados */
.form-control {
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Alertas personalizadas */
.alert-custom {
    border: none;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid;
}

.alert-custom-success {
    background-color: rgba(39, 174, 96, 0.1);
    border-left-color: var(--success-color);
    color: #1e8449;
}

.alert-custom-warning {
    background-color: rgba(243, 156, 18, 0.1);
    border-left-color: var(--warning-color);
    color: #b7950b;
}

.alert-custom-danger {
    background-color: rgba(231, 76, 60, 0.1);
    border-left-color: var(--accent-color);
    color: #c0392b;
}

.alert-custom-info {
    background-color: rgba(52, 152, 219, 0.1);
    border-left-color: var(--secondary-color);
    color: #2874a6;
}

/* Iconos y elementos decorativos */
.icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    font-size: 1.2rem;
    margin-right: 1rem;
}

/* Stats y métricas */
.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
    border: 1px solid rgba(52, 73, 94, 0.1);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--dark-gray);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

/* Responsive */
@media (max-width: 768px) {
    .main-header h1 {
        font-size: 2rem;
    }
    
    .content-card {
        padding: 1rem;
    }
    
    .table-responsive {
        border-radius: 8px;
    }
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Utilidades adicionales */
.text-muted-custom {
    color: var(--dark-gray) !important;
}

.border-custom {
    border: 2px solid var(--light-gray) !important;
    border-radius: 8px;
}

.shadow-custom {
    box-shadow: 0 4px 6px rgba(0,0,0,0.07) !important;
}

/* Form Enhancements */
.form-label {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

/* Evaluation Sections */
.evaluation-section {
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

.evaluation-title {
    padding: 1rem;
    margin: 0;
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.evaluation-title.bg-primary {
    background: linear-gradient(135deg, #3498db, #2980b9) !important;
}

.evaluation-title.bg-success {
    background: linear-gradient(135deg, #27ae60, #229954) !important;
}

.evaluation-title.bg-warning {
    background: linear-gradient(135deg, #f39c12, #e67e22) !important;
    color: white !important;
}

.evaluation-section .row {
    padding: 1rem;
    margin: 0;
}

/* Enhanced responsive design */
@media (max-width: 576px) {
    .section-title {
        font-size: 1.1rem;
        padding: 0.75rem 1rem;
    }
    
    .btn-custom-primary,
    .btn-custom-secondary,
    .btn-custom-success,
    .btn-custom-danger {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .evaluation-title {
        padding: 0.75rem;
        font-size: 0.95rem;
    }
}

/* Syllabus View Styles */
.info-badge {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    border-left: 4px solid var(--secondary-color);
    height: 100%;
}

.info-section {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    height: 100%;
}

.info-section-title {
    color: var(--primary-color);
    border-bottom: 2px solid var(--light-gray);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.info-item {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(52, 152, 219, 0.05);
    border-radius: 5px;
    border-left: 3px solid var(--secondary-color);
}

.info-item strong {
    color: var(--text-color);
}

.info-item p {
    margin-bottom: 0;
    margin-top: 0.5rem;
    color: var(--dark-gray);
}

/* Badge Status Styles */
.badge-status {
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    display: block;
    width: 100%;
}

.badge-status-success {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
}

.badge-status-secondary {
    background: linear-gradient(135deg, #95a5a6, #bdc3c7);
    color: white;
}

.badge-status-warning {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
}

/* Bibliography Styles */
.bibliography-section {
    border-left: 4px solid var(--secondary-color);
    padding-left: 1rem;
}

.bibliography-list {
    background: rgba(52, 152, 219, 0.02);
    border-radius: 8px;
    padding: 1rem;
}

.bibliography-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: white;
    border-radius: 6px;
    border: 1px solid var(--light-gray);
    transition: box-shadow 0.3s ease;
}

.bibliography-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.bibliography-content {
    flex: 1;
    color: var(--text-color);
    line-height: 1.5;
}

.bibliography-item:last-child {
    margin-bottom: 0;
}

/* Print Button */
.print-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    width: 60px;
    height: 60px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.print-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

/* Print Styles */
@media print {
    .no-print { 
        display: none !important; 
    }
    
    .main-header {
        display: none !important;
    }
    
    body {
        background: white !important;
    }
    
    .content-card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}