/* Banco de Recursos Educativos - Estilos Personalizados */

:root {
    --ceibal-primary: #0d6efd;
    --ceibal-secondary: #6c757d;
    --ceibal-success: #198754;
    --ceibal-info: #0dcaf0;
    --ceibal-warning: #ffc107;
    --ceibal-danger: #dc3545;
    --ceibal-light: #f8f9fa;
    --ceibal-dark: #212529;
}

/* Navbar personalizado */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,.08);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--ceibal-primary) !important;
}

/* Cards de recursos */
.card {
    transition: transform 0.2s, box-shadow 0.2s;
    border-radius: 10px;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,.15);
}

.card-title {
    color: var(--ceibal-dark);
    font-weight: 600;
}

.card-footer {
    background-color: var(--ceibal-light);
    border-top: 1px solid rgba(0,0,0,.05);
}

/* Badges */
.badge {
    padding: 0.5em 0.8em;
    font-weight: 500;
    border-radius: 6px;
}

/* Botones */
.btn {
    border-radius: 6px;
    font-weight: 500;
    padding: 0.5rem 1.2rem;
    transition: all 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,.15);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* Formularios */
.form-control, .form-select {
    border-radius: 6px;
    border: 1px solid #dee2e6;
    padding: 0.6rem 0.75rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--ceibal-primary);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

/* Alertas */
.alert {
    border-radius: 8px;
    border: none;
    padding: 1rem 1.5rem;
}

.alert-success {
    background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
    color: #155724;
}

.alert-info {
    background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%);
    color: #0c5460;
}

/* Filtros de búsqueda */
.card-body h5 {
    color: var(--ceibal-primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Paginación */
.pagination {
    margin-top: 2rem;
}

.page-link {
    color: var(--ceibal-primary);
    border-radius: 6px;
    margin: 0 2px;
    border: 1px solid #dee2e6;
}

.page-link:hover {
    background-color: var(--ceibal-primary);
    border-color: var(--ceibal-primary);
    color: white;
}

.page-item.active .page-link {
    background-color: var(--ceibal-primary);
    border-color: var(--ceibal-primary);
}

/* Header de página */
h2, h3, h4 {
    color: var(--ceibal-dark);
    font-weight: 600;
}

/* Contenedor principal */
main {
    min-height: calc(100vh - 150px);
}

/* Responsive */
@media (max-width: 768px) {
    .card {
        margin-bottom: 1rem;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeIn 0.5s ease-out;
}

/* Mejoras de accesibilidad */
.btn:focus, .form-control:focus, .form-select:focus {
    outline: 2px solid var(--ceibal-primary);
    outline-offset: 2px;
}

/* Estilo para el detalle del recurso */
.text-justify {
    text-align: justify;
    line-height: 1.6;
}

/* Footer de cards más atractivo */
.card-footer .btn {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Mejora visual para forms */
.form-label {
    font-weight: 500;
    color: var(--ceibal-dark);
    margin-bottom: 0.5rem;
}

.text-danger {
    font-weight: 600;
}

/* Dropdown menus */
.dropdown-menu {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
    border: none;
}

.dropdown-item:hover {
    background-color: var(--ceibal-light);
    color: var(--ceibal-primary);
}

