/* Dashboard DEV - Tema Escuro */
.dashboard-dev {
    background: #1a1a2e;
    min-height: 100vh;
    padding: 20px;
    color: #eee;
}

.dashboard-dev .page-header {
    background: linear-gradient(135deg, #16213e, #0f3460);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.dashboard-dev .page-header h1 {
    color: #00d4ff;
    font-size: 2rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.dashboard-dev .page-header .subtitle {
    color: #aaa;
    margin-top: 10px;
    font-size: 0.95rem;
}

/* KPI Cards */
.kpi-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.kpi-card {
    background: linear-gradient(135deg, #16213e, #1a1a2e);
    border: 1px solid #2d3561;
    border-radius: 10px;
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-color);
}

.kpi-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,212,255,0.2);
}

.kpi-card.primary::before { background: #00d4ff; }
.kpi-card.success::before { background: #00ff88; }
.kpi-card.warning::before { background: #ffd700; }
.kpi-card.info::before { background: #9d4edd; }

.kpi-card .icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    opacity: 0.8;
}

.kpi-card.primary .icon { color: #00d4ff; }
.kpi-card.success .icon { color: #00ff88; }
.kpi-card.warning .icon { color: #ffd700; }
.kpi-card.info .icon { color: #9d4edd; }

.kpi-card .value {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 5px;
    color: #fff;
}

.kpi-card .label {
    color: #aaa;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.kpi-card .detail {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #2d3561;
    font-size: 0.85rem;
    color: #888;
}

/* Gráficos */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.chart-card {
    background: #16213e;
    border: 1px solid #2d3561;
    border-radius: 10px;
    padding: 25px;
}

.chart-card h3 {
    color: #00d4ff;
    margin-bottom: 20px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chart-card canvas {
    max-height: 300px;
}

/* Tabelas */
.tables-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.table-card {
    background: #16213e;
    border: 1px solid #2d3561;
    border-radius: 10px;
    padding: 25px;
}

.table-card h3 {
    color: #00d4ff;
    margin-bottom: 20px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.table-card table {
    width: 100%;
    color: #eee;
}

.table-card table thead {
    background: #0f3460;
}

.table-card table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #00d4ff;
    border-bottom: 2px solid #2d3561;
}

.table-card table td {
    padding: 12px;
    border-bottom: 1px solid #2d3561;
}

.table-card table tbody tr:hover {
    background: #1a1a2e;
}

/* Badges de Status */
.badge-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-status.ativa {
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
    border: 1px solid #00ff88;
}

.badge-status.trial {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
    border: 1px solid #ffd700;
}

.badge-status.suspensa {
    background: rgba(255, 68, 68, 0.2);
    color: #ff4444;
    border: 1px solid #ff4444;
}

.badge-status.inativa {
    background: rgba(136, 136, 136, 0.2);
    color: #888;
    border: 1px solid #888;
}

/* Métricas de Performance */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.metric-card {
    background: #16213e;
    border: 1px solid #2d3561;
    border-radius: 10px;
    padding: 20px;
}

.metric-card h4 {
    color: #00d4ff;
    margin-bottom: 15px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.metric-bar {
    background: #0f3460;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.metric-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.metric-bar-fill.good { background: #00ff88; }
.metric-bar-fill.warning { background: #ffd700; }
.metric-bar-fill.danger { background: #ff4444; }

.metric-value {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #aaa;
}

/* Alertas */
.alerts-section {
    background: #16213e;
    border: 1px solid #2d3561;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
}

.alerts-section h3 {
    color: #ff4444;
    margin-bottom: 20px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-item {
    background: rgba(255, 68, 68, 0.1);
    border-left: 4px solid #ff4444;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.alert-item.warning {
    background: rgba(255, 215, 0, 0.1);
    border-left-color: #ffd700;
}

.alert-item .icon {
    font-size: 1.5rem;
    color: #ff4444;
}

.alert-item.warning .icon {
    color: #ffd700;
}

.alert-item .content {
    flex: 1;
}

.alert-item .title {
    font-weight: 600;
    margin-bottom: 5px;
    color: #fff;
}

.alert-item .description {
    font-size: 0.9rem;
    color: #aaa;
}

/* Responsivo */
@media (max-width: 768px) {
    .charts-grid,
    .tables-grid,
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .kpi-cards {
        grid-template-columns: 1fr;
    }
}

/* Loading */
.loading-spinner {
    text-align: center;
    padding: 50px;
    color: #00d4ff;
}

.loading-spinner i {
    font-size: 3rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 50px;
    color: #888;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}
