/* Variables CSS */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --background: #0f172a;
    --surface: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --border: #334155;
    --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --font-primary: 'Inter', sans-serif;
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background: linear-gradient(135deg, #0a2342 0%, #1b2a49 60%, #2563eb 100%);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
}

/* Estilos de Login */
.login-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: -2;
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    z-index: -1;
}

.login-card {
    background: rgba(20, 40, 80, 0.85);
    border-radius: 24px;
    padding: 48px 36px 36px 36px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 8px 32px 0 rgba(0,0,0,0.25);
    border: 1.5px solid rgba(37,99,235,0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    position: relative;
}

/* Botón para volver al informe */
.back-to-report-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(239, 68, 68, 0.9);
    border: 2px solid #ef4444;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1000;
    font-weight: bold;
}

.back-to-report-btn:hover {
    background: #dc2626;
    border-color: #dc2626;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.back-to-report-btn:active {
    transform: scale(0.95);
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
}

.logo-icon {
    font-size: 32px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-header h1 {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    color: #b6c6e3;
    font-size: 16px;
    font-weight: 400;
    margin-top: 8px;
}

.login-tabs {
    display: flex;
    background: rgba(10,35,66,0.7);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 32px;
    box-shadow: 0 2px 8px rgba(37,99,235,0.08);
}

.tab-button {
    flex: 1;
    padding: 14px 0;
    border: none;
    background: transparent;
    color: #b6c6e3;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
    letter-spacing: 0.5px;
}

.tab-button.active {
    background: linear-gradient(90deg, #2563eb 0%, #1e40af 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(37,99,235,0.12);
}

.login-form {
    display: none;
}

.login-form.active {
    display: block;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #b6c6e3;
    font-size: 15px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #23345c;
    border-radius: 10px;
    background: rgba(10,35,66,0.7);
    color: #fff;
    font-size: 15px;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-shadow: 0 1px 4px rgba(37,99,235,0.04);
}

.form-group input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #b6c6e3;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.checkbox-label a {
    color: #4f8cff;
    text-decoration: underline;
}

.form-actions {
    margin-top: 32px;
    text-align: center;
}

.btn-primary {
    width: 100%;
    padding: 16px;
    background: linear-gradient(90deg, #2563eb 0%, #1e40af 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(37,99,235,0.15);
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37,99,235,0.25);
}

.btn-secondary {
    width: 100%;
    padding: 16px;
    background: transparent;
    color: #b6c6e3;
    border: 1.5px solid #23345c;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 0.5px;
}

.btn-secondary:hover {
    border-color: #2563eb;
    color: #2563eb;
}

.forgot-password,
.back-to-login {
    color: #4f8cff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
}

.forgot-password:hover,
.back-to-login:hover {
    color: #7c9dff;
}

/* Estilos para acceso de invitado */
.guest-access {
    margin-top: 24px;
    text-align: center;
}

.divider {
    position: relative;
    margin: 20px 0;
    text-align: center;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(182, 198, 227, 0.3);
    z-index: 1;
}

.divider span {
    position: relative;
    background: rgba(20, 40, 80, 0.85);
    padding: 0 16px;
    color: #b6c6e3;
    font-size: 14px;
    z-index: 2;
}

.btn-guest {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid rgba(37, 99, 235, 0.3);
    border-radius: 10px;
    background: rgba(37, 99, 235, 0.1);
    color: #4f8cff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
    text-decoration: none;
}

.btn-guest:hover {
    background: rgba(37, 99, 235, 0.2);
    border-color: rgba(37, 99, 235, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.btn-guest i {
    font-size: 16px;
}

.guest-note {
    color: #94a3b8;
    font-size: 12px;
    margin: 0;
    line-height: 1.4;
}

.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.dashboard-header {
    background: rgba(20, 40, 80, 0.85);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: 0 8px 32px 0 rgba(0,0,0,0.25);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.header-left p {
    color: #b6c6e3;
    font-size: 16px;
}

.user-info {
    text-align: right;
}

.user-role {
    background: linear-gradient(90deg, #2563eb 0%, #1e40af 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}

.logout-btn {
    background: transparent;
    color: #ef4444;
    border: 1px solid #ef4444;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.logout-btn:hover {
    background: #ef4444;
    color: white;
}

.filters-section {
    background: rgba(20, 40, 80, 0.85);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 32px;
    box-shadow: 0 8px 32px 0 rgba(0,0,0,0.25);
}

.filters-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group input,
.filter-group select {
    padding: 12px;
    border: 1.5px solid #23345c;
    border-radius: 8px;
    background: rgba(10,35,66,0.7);
    color: #fff;
    font-size: 14px;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

.filter-actions {
    display: flex;
    gap: 8px;
}

.reports-section {
    background: rgba(20, 40, 80, 0.85);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 8px 32px 0 rgba(0,0,0,0.25);
}

.reports-header {
    margin-bottom: 24px;
}

.reports-header h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.reports-header p {
    color: #b6c6e3;
}

.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.report-card {
    background: rgba(10,35,66,0.7);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #23345c;
    transition: all 0.3s;
    cursor: pointer;
}

.report-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(37,99,235,0.15);
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.report-access-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.report-access-badge.free {
    background: #10b981;
    color: white;
}

.report-access-badge.premium {
    background: #f59e0b;
    color: white;
}

.report-access-badge.premium_plus {
    background: #8b5cf6;
    color: white;
}

.report-category {
    color: #4f8cff;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.report-content {
    margin-bottom: 16px;
}

.report-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.report-excerpt {
    color: #b6c6e3;
    font-size: 14px;
    line-height: 1.5;
}

.report-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #23345c;
}

.report-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: #64748b;
}

.report-author,
.report-date {
    display: flex;
    align-items: center;
    gap: 4px;
}

.no-reports {
    text-align: center;
    padding: 64px 32px;
    color: #64748b;
}

.no-reports-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.no-reports h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.no-reports p {
    font-size: 16px;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.page-link {
    padding: 8px 16px;
    background: rgba(10,35,66,0.7);
    color: #b6c6e3;
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid #23345c;
    transition: all 0.3s;
}

.page-link:hover,
.page-link.active {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

.report-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.report-header {
    background: rgba(20, 40, 80, 0.85);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: 0 8px 32px 0 rgba(0,0,0,0.25);
}

.report-header h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #4f8cff;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 24px;
}

.back-link:hover {
    text-decoration: underline;
}

.report-info {
    background: rgba(20, 40, 80, 0.85);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 32px;
    box-shadow: 0 8px 32px 0 rgba(0,0,0,0.25);
}

.report-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.meta-label {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

.meta-value {
    font-size: 16px;
    font-weight: 600;
}

.access-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.access-badge.free {
    background: #10b981;
    color: white;
}

.access-badge.premium {
    background: #f59e0b;
    color: white;
}

.access-badge.premium_plus {
    background: #8b5cf6;
    color: white;
}

.report-content {
    background: rgba(20, 40, 80, 0.85);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: 0 8px 32px 0 rgba(0,0,0,0.25);
}

.report-excerpt {
    line-height: 1.8;
    font-size: 16px;
}

.report-excerpt h3,
.report-excerpt h4 {
    color: #4f8cff;
    margin: 24px 0 16px 0;
    font-weight: 600;
}

.report-excerpt p,
.report-excerpt ul,
.report-excerpt ol {
    margin-bottom: 16px;
    color: #b6c6e3;
}

.report-navigation {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

.nav-buttons {
    display: flex;
    gap: 16px;
}

.logo-img {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-card {
        padding: 32px 24px;
    }
    
    .logo-img {
        height: 32px;
    }
    
    .login-header h1 {
        font-size: 24px;
    }
    
    .logo-icon {
        font-size: 28px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .header-left h1 {
        font-size: 24px;
    }
    
    .filters-form {
        grid-template-columns: 1fr;
    }
    
    .filter-group {
        margin-bottom: 16px;
    }
    
    .reports-grid {
        grid-template-columns: 1fr;
    }
    
    .report-footer {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    
    .report-meta {
        justify-content: space-between;
    }
    
    .nav-buttons {
        flex-direction: column;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
    

    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .filters-grid {
        grid-template-columns: 1fr;
    }
    
    /* Ocultar tabla de recientes en móvil y mostrar cards compactas */
    .reports-table table {
        display: none;
    }
    
    .mobile-report-cards {
        display: block;
    }
    
    .nav-tabs {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .dashboard-container,
    .report-container {
        padding: 16px;
    }
    
    .dashboard-header,
    .filters-section,
    .reports-section,
    .report-header,
    .report-info,
    .report-content {
        padding: 20px;
    }
    
    .header-left h1 {
        font-size: 20px;
    }
    
    .report-header h1 {
        font-size: 24px;
    }
    
    .login-card {
        padding: 24px 20px;
    }
    
    .logo-img {
        height: 28px;
    }
    

    
    .mobile-report-card {
        padding: 0.8rem;
        margin-bottom: 0.6rem;
    }
    
    .mobile-report-title {
        font-size: 0.85rem;
        margin-bottom: 0.6rem;
    }
    
    .mobile-report-header {
        margin-bottom: 0.6rem;
    }
    
    .mobile-meta-label {
        font-size: 0.65rem;
        padding: 0.2rem 0.5rem;
    }
    
    .mobile-report-meta {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }
    
    .mobile-meta-item {
        padding: 0.1rem 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
}

/* Estilos para selector de plantillas */
.report-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.template-selector {
    position: relative;
}

.template-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: rgba(10,35,66,0.7);
    color: var(--text-primary);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.template-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(37,99,235,0.1);
}

.template-select:hover {
    border-color: var(--primary-color);
}

.template-select option {
    background: var(--surface);
    color: var(--text-primary);
    padding: 8px;
}

.btn-view-default {
    font-size: 13px;
    padding: 8px 16px;
}

/* Responsive para selector de plantillas */
@media (min-width: 769px) {
    .report-actions {
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }
    
    .template-selector {
        flex: 1;
        min-width: 140px;
    }
    
    .btn-view-default {
        white-space: nowrap;
    }
}

/* Mejoras para tarjetas de informe */
.report-footer {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 15px;
    margin-top: 15px;
}

/* Animaciones suaves */
.template-select,
.btn-view-default {
    transition: all 0.2s ease;
}

.template-select:hover,
.btn-view-default:hover {
    transform: translateY(-1px);
}



/* 🎨 MEJORAS VISUALES DASHBOARD - MODERNO Y ATRACTIVO */

/* Header principal mejorado */
.main-header {
    background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%);
    border-bottom: 3px solid #2563eb;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
}

.main-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(37,99,235,0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.header-content {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    box-shadow: 0 4px 20px rgba(37,99,235,0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.logo-text h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f8fafc;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.logo-text p {
    font-size: 0.9rem;
    color: #cbd5e1;
    margin: 0;
    font-style: italic;
}

/* Stats cards mejoradas */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.stat-card {
    background: linear-gradient(135deg, rgba(30,41,59,0.9) 0%, rgba(51,65,85,0.9) 100%);
    border: 1px solid rgba(37,99,235,0.2);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #3b82f6, #60a5fa);
    border-radius: 16px 16px 0 0;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(37,99,235,0.2);
    border-color: rgba(37,99,235,0.4);
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #f8fafc;
    margin: 0.5rem 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.stat-label {
    font-size: 0.9rem;
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Tabla de informes mejorada */
.reports-table {
    background: rgba(30,41,59,0.8);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(37,99,235,0.2);
}

.table-header {
    background: linear-gradient(135deg, #1e293b, #334155);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(37,99,235,0.3);
}

.table-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #f8fafc;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.table-title i {
    color: #3b82f6;
}

.reports-table table {
    width: 100%;
    border-collapse: collapse;
}

.reports-table th {
    background: rgba(37,99,235,0.1);
    padding: 1rem 1.5rem;
    text-align: left;
    font-weight: 600;
    color: #e2e8f0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.8rem;
    border-bottom: 1px solid rgba(37,99,235,0.2);
}

.reports-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(51,65,85,0.3);
    color: #cbd5e1;
    transition: all 0.2s ease;
}

.reports-table tr:hover td {
    background: rgba(37,99,235,0.1);
    color: #f8fafc;
}

.report-id {
    font-family: 'Courier New', monospace;
    background: rgba(37,99,235,0.2);
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-weight: 600;
    color: #93c5fd;
    font-size: 0.85rem;
}

/* Status badges mejorados */
.status-badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 2px 8px rgba(16,185,129,0.3);
}

.status-pending {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    box-shadow: 0 2px 8px rgba(245,158,11,0.3);
}

.status-process {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    box-shadow: 0 2px 8px rgba(139,92,246,0.3);
}

.status-completed {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
    box-shadow: 0 2px 8px rgba(107,114,128,0.3);
}

/* Filtros mejorados */
.filters-section {
    background: rgba(30,41,59,0.8);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    border: 1px solid rgba(37,99,235,0.2);
    backdrop-filter: blur(10px);
}

.filters-header {
    font-size: 1.2rem;
    font-weight: 600;
    color: #f8fafc;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filters-header i {
    color: #3b82f6;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #e2e8f0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-input,
.filter-select {
    padding: 0.8rem 1rem;
    border: 1px solid rgba(51,65,85,0.6);
    border-radius: 8px;
    background: rgba(15,23,42,0.8);
    color: #f8fafc;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.filter-input:focus,
.filter-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

/* Navegación de tabs mejorada */
.nav-tabs {
    display: flex;
    background: rgba(15,23,42,0.8);
    border-radius: 12px;
    padding: 0.5rem;
    margin: 2rem 0;
    border: 1px solid rgba(37,99,235,0.2);
    backdrop-filter: blur(10px);
}

.nav-tab {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    background: transparent;
    color: #cbd5e1;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.nav-tab.active {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: white;
    box-shadow: 0 4px 12px rgba(37,99,235,0.3);
}

.nav-tab:hover:not(.active) {
    background: rgba(37,99,235,0.1);
    color: #f8fafc;
}



/* Estilos para las tarjetas móviles de recientes - diseño mejorado */
.mobile-report-cards {
    display: none; /* Oculto por defecto, se muestra solo en móvil */
    gap: 0.8rem;
}

.mobile-report-card {
    background: linear-gradient(135deg, rgba(30,41,59,0.9) 0%, rgba(15,23,42,0.8) 100%);
    border: 1px solid rgba(37,99,235,0.3);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.8rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
}

.mobile-report-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8, #7c3aed);
    border-radius: 12px 12px 0 0;
}

.mobile-report-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37,99,235,0.2);
    border-color: rgba(37,99,235,0.5);
}

.mobile-report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.mobile-report-id {
    font-family: 'Courier New', monospace;
    background: linear-gradient(135deg, rgba(37,99,235,0.2), rgba(59,130,246,0.3));
    padding: 0.3rem 0.7rem;
    border-radius: 6px;
    font-weight: 700;
    color: #93c5fd;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    border: 1px solid rgba(59,130,246,0.3);
}

.mobile-report-date {
    font-size: 0.75rem;
    color: #cbd5e1;
    font-weight: 600;
    background: rgba(51,65,85,0.5);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.mobile-report-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 0.8rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.mobile-report-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
}

.mobile-meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.mobile-meta-label {
    background: rgba(51,65,85,0.6);
    color: #e2e8f0;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border: 1px solid rgba(71,85,105,0.4);
}

.mobile-meta-separator {
    color: #64748b;
    font-weight: 400;
    font-size: 0.8rem;
}



/* En desktop, ocultar las cards móviles y mostrar tabla */
@media (min-width: 769px) {
    .mobile-report-cards {
        display: none;
    }
    
    .reports-table table {
        display: table;
    }
}

/* Responsive para pantallas muy pequeñas */
@media (max-width: 480px) {
    .agent-info {
        padding: 1rem;
    }
    
    .agent-info h3 {
        font-size: 1.1rem;
    }
    
    .mobile-report-card {
        padding: 0.8rem;
    }
    
    .mobile-report-title {
        font-size: 0.85rem;
    }
    
    .mobile-report-meta {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }
    
    .mobile-meta-item {
        padding: 0.1rem 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
} 