/* ========================================
   DASHBOARD PAGES
   ======================================== */

/* Importar variáveis globais */
@import '../utilities/variables.css';

/* ========================================
   CONTAINER E LAYOUT
   ======================================== */
.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ========================================
   HEADER DO DASHBOARD
   ======================================== */
.dashboard-header {
    background: linear-gradient(135deg, var(--spotify-dark) 0%, var(--spotify-gray) 100%);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--spotify-light-gray);
    box-shadow: var(--shadow-md);
}

.dashboard-header h1 {
    color: var(--spotify-white);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.dashboard-header p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* ========================================
   CARDS DE ESTATÍSTICAS
   ======================================== */
.stats-card {
    background: linear-gradient(135deg, var(--spotify-gray) 0%, var(--spotify-dark) 100%);
    border: 1px solid var(--spotify-light-gray);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.stats-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--spotify-green);
}

.stats-card .stats-icon {
    font-size: 2.5rem;
    color: var(--spotify-green);
    margin-bottom: 1rem;
}

.stats-card .stats-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--spotify-green);
    margin-bottom: 0.5rem;
}

.stats-card .stats-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========================================
   CARDS PRINCIPAIS
   ======================================== */
.main-card {
    background: linear-gradient(135deg, var(--spotify-gray) 0%, var(--spotify-dark) 100%);
    border: 1px solid var(--spotify-light-gray);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    overflow: hidden;
}

.main-card .card-header {
    background: linear-gradient(135deg, var(--spotify-dark) 0%, var(--spotify-gray) 100%);
    border-bottom: 1px solid var(--spotify-light-gray);
    padding: 1.25rem 1.5rem;
}

.main-card .card-header h6 {
    color: var(--spotify-white);
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
}

.main-card .card-header h6 i {
    margin-right: 0.5rem;
    color: var(--spotify-green);
}

.main-card .card-body {
    padding: 1.5rem;
}

/* ========================================
   TABELAS
   ======================================== */
.dashboard-table {
    background-color: transparent;
    border: none;
}

.dashboard-table thead th {
    background-color: var(--spotify-dark);
    color: var(--spotify-white);
    border: none;
    font-weight: 600;
    padding: 1rem;
    border-bottom: 1px solid var(--spotify-light-gray);
}

.dashboard-table tbody td {
    background-color: transparent;
    color: var(--text-primary);
    border: none;
    padding: 1rem;
    border-bottom: 1px solid var(--spotify-light-gray);
}

.dashboard-table tbody tr:hover {
    background-color: var(--spotify-dark);
}

/* ========================================
   BADGES
   ======================================== */
.badge {
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius-pill);
}

.badge.bg-success {
    background-color: var(--spotify-green) !important;
}

.badge.bg-warning {
    background-color: #ffc107 !important;
    color: #000 !important;
}

.badge.bg-danger {
    background-color: var(--spotify-red) !important;
}

.badge.bg-info {
    background-color: #17a2b8 !important;
}

/* ========================================
   BOTÕES DE AÇÃO
   ======================================== */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.action-buttons .btn {
    border-radius: var(--border-radius-pill);
    font-weight: 600;
    padding: 0.5rem 1rem;
    transition: all var(--transition-normal);
}

.action-buttons .btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* ========================================
   LISTA DE ITENS
   ======================================== */
.item-list {
    background-color: transparent;
}

.item-list .list-group-item {
    background-color: transparent;
    border: 1px solid var(--spotify-light-gray);
    color: var(--text-primary);
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-radius: var(--border-radius);
    transition: all var(--transition-fast);
}

.item-list .list-group-item:hover {
    background-color: var(--spotify-dark);
    border-color: var(--spotify-green);
}

.item-list .list-group-item:last-child {
    margin-bottom: 0;
}

/* ========================================
   ESTADO VAZIO
   ======================================== */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}

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

.empty-state p {
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* ========================================
   RESPONSIVIDADE
   ======================================== */
@media (max-width: 768px) {
    .dashboard-header {
        padding: 1.5rem;
        text-align: center;
    }
    
    .dashboard-header .d-flex {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stats-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .stats-card .stats-icon {
        font-size: 2rem;
    }
    
    .stats-card .stats-number {
        font-size: 1.5rem;
    }
    
    .main-card .card-header,
    .main-card .card-body {
        padding: 1rem;
    }
    
    .action-buttons {
        justify-content: center;
    }
    
    .action-buttons .btn {
        flex: 1;
        min-width: 120px;
    }
}

@media (max-width: 576px) {
    .dashboard-container {
        padding: 0 10px;
    }
    
    .stats-card .stats-icon {
        font-size: 1.5rem;
    }
    
    .stats-card .stats-number {
        font-size: 1.25rem;
    }
    
    .empty-state {
        padding: 2rem 1rem;
    }
    
    .empty-state i {
        font-size: 3rem;
    }
}
