/**
 * JAG-Media - Estilos para Dashboard Combinado
 * Diseño de dos columnas con colores corporativos
 */

.jagmedia-dashboard {
    max-width: 850px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 133, 178, 0.15);
    border-radius: 20px;
    padding: 24px;
    backdrop-filter: blur(20px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(0, 133, 178, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.jagmedia-dashboard::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(0, 133, 178, 0.08) 0%,
        rgba(207, 83, 49, 0.05) 50%,
        rgba(0, 133, 178, 0.08) 100%
    );
    pointer-events: none;
    z-index: 0;
}

.jagmedia-dashboard > * {
    position: relative;
    z-index: 1;
}

/* Header */
.dashboard-header {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.header-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin: 0;
    max-width: 600px;
    margin: 0 auto;
}

/* Content Layout */
.dashboard-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

.dashboard-column {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .jagmedia-dashboard {
        margin: 0 16px;
        padding: 24px;
    }
    
    .dashboard-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .dashboard-header {
        margin-bottom: 24px;
        padding-bottom: 20px;
    }
    
    .header-content h2 {
        font-size: 1.75rem;
    }
    
    .header-content p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .jagmedia-dashboard {
        margin: 0 12px;
        padding: 20px;
    }
    
    .dashboard-content {
        gap: 16px;
    }
    
    .dashboard-header {
        margin-bottom: 20px;
        padding-bottom: 16px;
    }
    
    .header-content h2 {
        font-size: 1.5rem;
    }
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.jagmedia-dashboard {
    animation: fadeIn 0.6s ease-out;
}

.dashboard-column {
    animation: fadeIn 0.8s ease-out;
}

.dashboard-column:last-child {
    animation-delay: 0.2s;
}

/* Loading states */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    text-align: center;
    padding: 40px 20px;
}

.error {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    color: #f87171;
    font-size: 0.85rem;
    text-align: center;
    padding: 20px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 8px;
    margin: 20px;
}

.demo-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 133, 178, 0.1);
    color: #0085B2;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.demo-pill i {
    font-size: 16px !important;
    display: inline-block;
    width: 16px;
    height: 16px;
    text-align: center;
}
