/* css/dashboard.css */

/* Grid de Métricas (Stats Cards) */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1.5rem;
}

.stat-info h3 {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.stat-info .value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -1px;
}

.stat-info .trend {
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.25rem;
}

.trend.positive {
    color: var(--status-success);
}

.trend.negative {
    color: var(--pdt-red-500);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius-md);
    background-color: var(--pdt-red-50);
    color: var(--pdt-red-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Layout Seções - Tabelas */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th {
    padding: 1rem 1.5rem;
    background-color: var(--bg-main);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-light);
}

th:first-child {
    border-top-left-radius: var(--border-radius-md);
}

th:last-child {
    border-top-right-radius: var(--border-radius-md);
}

td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-primary);
    font-size: 0.875rem;
    vertical-align: middle;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background-color: var(--pdt-blue-50);
}

/* Dark mode specifics for dashboard elements */
[data-theme="dark"] .stat-icon {
    background-color: rgba(220, 38, 38, 0.15);
    /* Subtler background for icons */
}

[data-theme="dark"] tr:hover td {
    background-color: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] th {
    background-color: rgba(0, 0, 0, 0.2);
}

.table-row-actions {
    display: flex;
    gap: 0.5rem;
}

/* Mapa Container Placeholder */
.map-container {
    width: 100%;
    height: 400px;
    background-color: var(--bg-main);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    flex-direction: column;
    gap: 1rem;
}

.map-container i {
    font-size: 3rem;
}

/* Empty States */
.empty-state {
    padding: 3rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.empty-state i {
    font-size: 3rem;
    color: var(--text-tertiary);
}

.empty-state p {
    color: var(--text-secondary);
}