/**
 * MODERN STYLES - Sistema de Gestión
 * Estilos modernos con gradientes para todas las vistas
 */

/* ===== HEADERS CON GRADIENTE ===== */
.modern-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.modern-header .title {
    color: white !important;
    margin-bottom: 0.75rem;
}

.modern-header .subtitle {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Evita que Bulma encime titulos y subtitulos en las vistas internas */
.content-wrapper .title + .subtitle,
.content-wrapper .subtitle + .title {
    margin-top: 0.35rem !important;
}

/* ===== TARJETAS DE ESTADÍSTICAS ===== */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-left: 4px solid #667eea;
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #667eea;
    line-height: 1;
}

.stat-label {
    color: #7a7a7a;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* ===== CAJA DE BÚSQUEDA ===== */
.search-box {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

/* ===== CONTENEDOR DE TABLA MODERNA ===== */
.modern-table-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
}

/* ===== TABLA MODERNA ===== */
.table-modern {
    width: 100%;
    background: white;
}

.table-modern thead {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.table-modern thead th {
    padding: 1rem;
    font-weight: 600;
    color: #363636;
    border-bottom: 2px solid #667eea;
    text-align: center;
}

.table-modern tbody tr {
    transition: all 0.2s;
    border-bottom: 1px solid #f0f0f0;
}

.table-modern tbody tr:hover {
    background: #f8f9fa;
    transform: scale(1.005);
}

.table-modern tbody td {
    padding: 1rem;
    vertical-align: middle;
    text-align: center;
}

/* ===== AVATARES ===== */
.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
}

.item-avatar {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.3rem;
}

/* ===== BADGES Y ETIQUETAS ===== */
.role-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.role-admin {
    background: #ffe08a;
    color: #946c00;
}

.role-usuario {
    background: #d5f4e6;
    color: #257953;
}

.status-badge {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-active {
    background: #d5f4e6;
    color: #257953;
}

.status-inactive {
    background: #ffe5e5;
    color: #c92a2a;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

/* ===== BOTONES DE ACCIÓN ===== */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn-action-view {
    background: #4a90e2;
    color: white;
}

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

.btn-action-delete {
    background: #e74c3c;
    color: white;
}

.btn-action-download {
    background: #48c774;
    color: white;
}

/* ===== CARDS MODERNOS ===== */
.modern-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s;
}

.modern-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.modern-card-header {
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.modern-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #363636;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ===== FORMULARIOS MODERNOS ===== */
.modern-form {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 2rem;
}

.form-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ===== PAGINACIÓN MODERNA ===== */
.pagination-modern {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.pagination-modern .pagination-link {
    border-radius: 8px;
    transition: all 0.2s;
}

.pagination-modern .pagination-link:hover {
    transform: translateY(-2px);
}

.pagination-modern .pagination-link.is-current {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
}

/* ===== NOTIFICACIONES MEJORADAS ===== */
.notification-modern {
    border-radius: 12px;
    border-left: 4px solid;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.notification-modern.is-success {
    border-left-color: #48c774;
}

.notification-modern.is-danger {
    border-left-color: #f14668;
}

.notification-modern.is-warning {
    border-left-color: #ffc107;
}

.notification-modern.is-info {
    border-left-color: #3498db;
}

/* ===== TABS MODERNOS ===== */
.tabs-modern {
    background: white;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
}

.tabs-modern ul {
    border-bottom: 2px solid #f0f0f0;
}

.tabs-modern li.is-active a {
    border-bottom-color: #667eea;
    color: #667eea;
    font-weight: 600;
}

/* ===== MODALES MEJORADOS ===== */
.modal-modern .modal-card {
    border-radius: 12px;
    overflow: hidden;
}

.modal-modern .modal-card-head {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.modal-modern .modal-card-title {
    color: white;
}

/* ===== UTILIDADES ===== */
.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.shadow-modern {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.shadow-modern-hover {
    transition: all 0.3s;
}

.shadow-modern-hover:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .modern-header {
        padding: 1.5rem;
    }
    
    .stats-cards {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .table-modern {
        font-size: 0.875rem;
    }
    
    .table-modern thead th,
    .table-modern tbody td {
        padding: 0.75rem 0.5rem;
    }
}
