﻿/* ═══════════════════════════════════════════════════════════════
   MEGA RADIADORES — DASHBOARD STYLES
   ═══════════════════════════════════════════════════════════════ */

.dashboard-welcome {
    max-width: 1400px;
    margin: 0 auto;
}

/* ── Header ── */
.welcome-header {
    margin-bottom: 32px;
}

    .welcome-header h1 {
        font-size: 1.6rem;
        font-weight: 700;
        color: #f1f5f9;
        margin: 0 0 6px 0;
        line-height: 1.3;
    }

    .welcome-header p {
        color: #64748b;
        font-size: 0.9rem;
        margin: 0;
    }

    .welcome-header .highlight {
        color: #38bdf8;
        font-weight: 600;
    }

/* ── Stats Grid ── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(148, 163, 184, 0.08);
    border-radius: 16px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.2s ease;
}

    .stat-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        border-radius: 16px 16px 0 0;
    }

    .stat-card:hover {
        transform: translateY(-3px);
        border-color: rgba(148, 163, 184, 0.15);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    }

    .stat-card.blue::before {
        background: linear-gradient(90deg, #38bdf8, #0ea5e9);
    }

    .stat-card.green::before {
        background: linear-gradient(90deg, #34d399, #10b981);
    }

    .stat-card.amber::before {
        background: linear-gradient(90deg, #fbbf24, #f59e0b);
    }

    .stat-card.rose::before {
        background: linear-gradient(90deg, #fb7185, #f43f5e);
    }

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.stat-card.blue .stat-icon {
    background: rgba(56, 189, 248, 0.1);
    color: #38bdf8;
}

.stat-card.green .stat-icon {
    background: rgba(52, 211, 153, 0.1);
    color: #34d399;
}

.stat-card.amber .stat-icon {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
}

.stat-card.rose .stat-icon {
    background: rgba(251, 113, 133, 0.1);
    color: #fb7185;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0 0 4px 0;
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-trend {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

    .stat-trend.up {
        color: #34d399;
    }

    .stat-trend.down {
        color: #f87171;
    }

/* ── Dashboard Grid ── */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

/* ── Panels ── */
.dash-panel {
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(148, 163, 184, 0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

    .dash-panel:hover {
        border-color: rgba(148, 163, 184, 0.12);
    }

.panel-header {
    padding: 20px 24px 16px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.panel-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #f1f5f9;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0;
}

    .panel-title i {
        color: #38bdf8;
        font-size: 0.85rem;
    }

.panel-action {
    font-size: 0.75rem;
    color: #38bdf8;
    text-decoration: none;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    transition: background 0.2s;
}

    .panel-action:hover {
        background: rgba(56, 189, 248, 0.1);
        text-decoration: none;
    }

.panel-body {
    padding: 20px 24px;
}

/* ── Activity List ── */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.05);
}

    .activity-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .activity-item:first-child {
        padding-top: 0;
    }

.activity-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-top: 4px;
    flex-shrink: 0;
    position: relative;
}

    .activity-dot::after {
        content: '';
        position: absolute;
        inset: -3px;
        border-radius: 50%;
        border: 2px solid currentColor;
        opacity: 0.3;
    }

    .activity-dot.blue {
        background: #38bdf8;
        color: #38bdf8;
    }

    .activity-dot.green {
        background: #34d399;
        color: #34d399;
    }

    .activity-dot.amber {
        background: #fbbf24;
        color: #fbbf24;
    }

    .activity-dot.rose {
        background: #fb7185;
        color: #fb7185;
    }

.activity-content {
    flex: 1;
    min-width: 0;
}

.activity-text {
    color: #cbd5e1;
    font-size: 0.85rem;
    font-weight: 500;
    margin: 0 0 4px 0;
    line-height: 1.4;
}

.activity-time {
    color: #475569;
    font-size: 0.72rem;
    font-weight: 500;
}

/* ── Quick Links ── */
.quick-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.quick-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(148, 163, 184, 0.06);
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

    .quick-link:hover {
        background: rgba(56, 189, 248, 0.05);
        border-color: rgba(56, 189, 248, 0.15);
        transform: translateY(-2px);
    }

    .quick-link i {
        font-size: 1.4rem;
        transition: transform 0.2s;
    }

    .quick-link:hover i {
        transform: scale(1.1);
    }

    .quick-link span {
        font-size: 0.78rem;
        font-weight: 600;
        color: #94a3b8;
    }

    .quick-link:hover span {
        color: #f1f5f9;
    }

.ql-blue i {
    color: #38bdf8;
}

.ql-green i {
    color: #34d399;
}

.ql-amber i {
    color: #fbbf24;
}

.ql-rose i {
    color: #fb7185;
}

.ql-purple i {
    color: #a78bfa;
}

.ql-cyan i {
    color: #22d3ee;
}

/* ── Chart Placeholder ── */
.chart-placeholder {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    color: #475569;
}

    .chart-placeholder i {
        font-size: 2.5rem;
        opacity: 0.3;
    }

    .chart-placeholder span {
        font-size: 0.85rem;
        font-weight: 500;
    }

/* ── Animations ── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in,
.delay-1, .delay-2, .delay-3, .delay-4 {
    opacity: 1;
    transform: translateY(0);
}

    .animate-in.loaded {
        animation: fadeInUp 0.5s ease forwards;
    }

    .delay-1.loaded {
        animation-delay: 0.1s;
        opacity: 0;
    }

    .delay-2.loaded {
        animation-delay: 0.2s;
        opacity: 0;
    }

    .delay-3.loaded {
        animation-delay: 0.3s;
        opacity: 0;
    }

    .delay-4.loaded {
        animation-delay: 0.4s;
        opacity: 0;
    }

/* ── Responsive ── */
@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}
