/* Dashboard Styles */

.dashboard-page {
    padding: 30px;
    width: 100%;
    margin: 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    min-height: calc(100vh - 120px);
    box-sizing: border-box;
}

.dashboard-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e6ed;
    text-align: center;
}

.dashboard-header h1 {
    font-size: 2.5rem;
    color: #1e3a5f;
    margin-bottom: 8px;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-align: center;
}

.dashboard-header p {
    color: #6b7280;
    font-size: 1.1rem;
    font-weight: 400;
    text-align: center;
}

/* Cards de Estatísticas */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
    width: 100%;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 5px solid #0066cc;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0066cc 0%, #004d99 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.stat-card-title {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.stat-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0066cc 0%, #004d99 100%);
    box-shadow: 0 4px 6px -1px rgba(0, 102, 204, 0.3);
    flex-shrink: 0;
}

.stat-card-icon svg {
    width: 24px;
    height: 24px;
    stroke: white;
    fill: none;
    stroke-width: 2;
}

.stat-card-value {
    font-size: 3rem;
    font-weight: 700;
    color: #1e3a5f;
    margin-bottom: 8px;
    line-height: 1;
    letter-spacing: -1px;
}

.stat-card-change {
    font-size: 0.85rem;
    color: #28a745;
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-card-change.negative {
    color: #dc3545;
}

/* Seção de Últimos Relatórios */
.dashboard-section {
    background: white;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    margin-bottom: 30px;
    transition: box-shadow 0.3s;
}

.dashboard-section:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.dashboard-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
}

.dashboard-section-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e3a5f;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.3px;
}

.dashboard-section-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0066cc 0%, #004d99 100%);
    box-shadow: 0 4px 6px -1px rgba(0, 102, 204, 0.3);
    flex-shrink: 0;
}

.dashboard-section-icon svg {
    width: 20px;
    height: 20px;
    stroke: white;
    fill: none;
    stroke-width: 2.5;
}

.dashboard-section-link {
    color: #0066cc;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.dashboard-section-link:hover {
    color: #004d99;
    gap: 8px;
}

.dashboard-section-link::after {
    content: '→';
    transition: transform 0.2s;
}

.dashboard-section-link:hover::after {
    transform: translateX(4px);
}

/* Lista de Relatórios Recentes */
.recent-items-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px;
    border-bottom: 1px solid #e5e7eb;
    transition: all 0.2s;
    border-radius: 8px;
    margin-bottom: 4px;
}

.recent-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.recent-item:hover {
    background: linear-gradient(90deg, #f8fafc 0%, #f1f5f9 100%);
    transform: translateX(4px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.recent-item-info {
    flex: 1;
}

.recent-item-title {
    font-weight: 600;
    color: #1e3a5f;
    margin-bottom: 6px;
    font-size: 1rem;
    line-height: 1.4;
}

.recent-item-meta {
    font-size: 0.875rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.recent-item-date {
    display: flex;
    align-items: center;
    gap: 6px;
}

.recent-item-date svg,
.recent-item-meta svg {
    width: 14px;
    height: 14px;
    stroke: #9ca3af;
    fill: none;
    stroke-width: 2;
}

.recent-item-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.recent-item-badge.pauta {
    background: linear-gradient(135deg, #2196F3 0%, #1976d2 100%);
    color: white;
}

.recent-item-badge.cronograma {
    background: linear-gradient(135deg, #9c27b0 0%, #7b1fa2 100%);
    color: white;
}

.recent-item-badge.relatorio {
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
    color: white;
}

/* Grid de duas colunas */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
    width: 100%;
}

@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* Mensagem vazia */
.dashboard-empty {
    text-align: center;
    padding: 80px 20px;
    color: #9ca3af;
}

.dashboard-empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    opacity: 0.4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard-empty-icon svg {
    width: 100%;
    height: 100%;
    stroke: #9ca3af;
    fill: none;
    stroke-width: 1.5;
}

.dashboard-empty-text {
    font-size: 1.125rem;
    margin-bottom: 8px;
    font-weight: 600;
    color: #6b7280;
}

.dashboard-empty-subtext {
    font-size: 0.95rem;
    color: #9ca3af;
    font-weight: 400;
}
