/* painel/public/css/dashboard.css */
/* Enhanced Dashboard Styles with ADACE Color Palette */

/* Dashboard Header */
.dashboard-header {
    margin-bottom: 2rem;
}

.dashboard-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text-primary, #2d3748);
    background: linear-gradient(135deg, #13a89e 25%, #0174ba 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Stats Cards */
.stats-card {
    background: white;
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #13a89e 0%, #0174ba 100%);
}

.stats-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.1);
}

.stats-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1rem;
    background: linear-gradient(
        135deg,
        rgba(19, 168, 158, 0.1) 0%,
        rgba(1, 116, 186, 0.1) 100%
    );
    color: #13a89e;
}

.card-news .stats-icon {
    background: linear-gradient(
        135deg,
        rgba(19, 168, 158, 0.15) 0%,
        rgba(78, 205, 196, 0.15) 100%
    );
    color: #13a89e;
}

.card-events .stats-icon {
    background: linear-gradient(
        135deg,
        rgba(25, 135, 84, 0.15) 0%,
        rgba(40, 167, 69, 0.15) 100%
    );
    color: #198754;
}

.card-popup .stats-icon {
    background: linear-gradient(
        135deg,
        rgba(253, 126, 20, 0.15) 0%,
        rgba(255, 193, 7, 0.15) 100%
    );
    color: #fd7e14;
}

.stats-content h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--color-text-primary, #2d3748);
    line-height: 1;
}

.stats-label {
    font-size: 0.95rem;
    color: var(--color-text-secondary, #64748b);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.stats-detail {
    display: block;
    color: var(--color-text-secondary, #64748b);
    font-size: 0.875rem;
}

.stats-detail i {
    color: #13a89e;
}

.stats-trend {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

.trend-up {
    background: rgba(25, 135, 84, 0.1);
    color: #198754;
}

.trend-down {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.trend-stable {
    background: rgba(253, 126, 20, 0.1);
    color: #fd7e14;
}

/* Dashboard Cards */
.dashboard-card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
}

.dashboard-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.dashboard-card .card-header {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-bottom: 2px solid #e2e8f0;
    padding: 1.25rem 1.5rem;
}

.dashboard-card .card-title {
    color: var(--color-text-primary, #2d3748);
    font-weight: 600;
    font-size: 1.1rem;
}

.dashboard-card .card-title i {
    color: #13a89e;
}

/* News Chart */
.news-chart-container {
    padding: 1rem 0;
}

.progress-stacked {
    height: 40px;
    border-radius: 8px;
    background-color: #f1f5f9;
    display: flex;
    overflow: hidden;
}

.progress-stacked .progress-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    transition: width 0.6s ease;
}

.progress-bar.bg-primary {
    background: linear-gradient(90deg, #13a89e 0%, #4ecdc4 100%) !important;
}

.progress-bar.bg-secondary {
    background: linear-gradient(90deg, #64748b 0%, #94a3b8 100%) !important;
}

.chart-legend {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--color-text-secondary, #64748b);
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.legend-dot.bg-primary {
    background: #13a89e;
}

.legend-dot.bg-secondary {
    background: #64748b;
}

/* Status Overview */
.status-bar {
    height: 30px;
    border-radius: 8px;
    display: flex;
    overflow: hidden;
    background-color: #f1f5f9;
}

.status-segment {
    transition: width 0.6s ease;
    position: relative;
    cursor: pointer;
}

.status-segment:hover {
    opacity: 0.8;
}

.status-segment.bg-primary {
    background: linear-gradient(90deg, #13a89e 0%, #4ecdc4 100%);
}

.status-segment.bg-success {
    background: linear-gradient(90deg, #198754 0%, #28a745 100%);
}

.status-segment.bg-warning {
    background: linear-gradient(90deg, #fd7e14 0%, #ffc107 100%);
}

.status-legend {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.status-legend .legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    display: inline-block;
}

.legend-color.bg-primary {
    background: #13a89e;
}

.legend-color.bg-success {
    background: #198754;
}

.legend-color.bg-warning {
    background: #fd7e14;
}

/* Activity Timeline */
.activity-timeline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.timeline-item:hover {
    background-color: #f8fafc;
}

.timeline-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
    font-size: 0.875rem;
}

.timeline-icon.bg-primary {
    background: linear-gradient(135deg, #13a89e 0%, #4ecdc4 100%);
}

.timeline-icon.bg-success {
    background: linear-gradient(135deg, #198754 0%, #28a745 100%);
}

.timeline-icon.bg-warning {
    background: linear-gradient(135deg, #fd7e14 0%, #ffc107 100%);
}

.timeline-content {
    flex: 1;
}

.timeline-content h6 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-primary, #2d3748);
    margin-bottom: 0.25rem;
}

.timeline-content small {
    font-size: 0.875rem;
}

/* Quick Actions */
.quick-actions-card .card-body {
    padding: 1.5rem;
}

.btn-quick-action {
    padding: 1.5rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: white;
    color: var(--color-text-primary, #2d3748);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 500;
    height: 100%;
}

.btn-quick-action i {
    font-size: 2rem;
    background: linear-gradient(135deg, #13a89e 0%, #0174ba 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-quick-action:hover {
    border-color: #13a89e;
    background: linear-gradient(
        135deg,
        rgba(19, 168, 158, 0.05) 0%,
        rgba(1, 116, 186, 0.05) 100%
    );
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(19, 168, 158, 0.15);
}

/* Responsive Design */
@media (max-width: 992px) {
    .dashboard-title {
        font-size: 1.75rem;
    }

    .stats-content h3 {
        font-size: 2rem;
    }

    .stats-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .dashboard-title {
        font-size: 1.5rem;
    }

    .stats-card {
        padding: 1.25rem;
    }

    .stats-content h3 {
        font-size: 1.75rem;
    }

    .chart-legend,
    .status-legend {
        flex-direction: column;
        gap: 0.75rem;
    }

    .btn-quick-action {
        padding: 1.25rem 0.75rem;
    }

    .btn-quick-action i {
        font-size: 1.5rem;
    }
}
