/* Estilos do Painel Admin - Já EntreGo */

/* Variáveis de cores - Tema Claro */
:root {
    --bg-primary: #f5f5f5;
    --bg-secondary: #ffffff;
    --bg-header: #1a237e;
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-muted: #999999;
    --border-color: #e0e0e0;
    --card-shadow: 0 1px 3px rgba(0,0,0,0.1);
    --accent: #1a237e;
    --accent-light: #3949ab;
    --success: #4caf50;
    --danger: #f44336;
    --warning: #ffc107;
    --info: #2196f3;
}

/* Variáveis de cores - Tema Escuro */
[data-theme="dark"] {
    --bg-primary: #121212;
    --bg-secondary: #1e1e1e;
    --bg-header: #0d1421;
    --text-primary: #e0e0e0;
    --text-secondary: #b0b0b0;
    --text-muted: #808080;
    --border-color: #333333;
    --card-shadow: 0 2px 8px rgba(0,0,0,0.3);
    --accent: #5c6bc0;
    --accent-light: #7986cb;
    --success: #66bb6a;
    --danger: #ef5350;
    --warning: #ffca28;
    --info: #42a5f5;
}

/* Reset e Base */
body.admin-panel {
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: background 0.3s, color 0.3s;
}

/* Header */
.header {
    background: var(--bg-header) !important;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header h1 {
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header nav {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.header nav a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    transition: all 0.2s;
}

.header nav a:hover {
    background: rgba(255,255,255,0.15);
    color: white;
}

/* Toggle de Tema */
.theme-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 15px;
    padding-left: 15px;
    border-left: 1px solid rgba(255,255,255,0.2);
}

.theme-toggle-btn {
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.theme-toggle-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
}

/* Cards */
.card {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    transition: background 0.3s, border-color 0.3s;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

/* Stat Cards */
.stat-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.stat-card .number {
    font-size: 36px;
    font-weight: 700;
    color: var(--accent);
}

.stat-card .label {
    color: var(--text-secondary);
    margin-top: 8px;
    font-size: 14px;
}

/* Tabelas */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 14px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.table th {
    background: var(--bg-primary);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.table tr:hover td {
    background: rgba(0,0,0,0.02);
}

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

/* Formulários */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: all 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.1);
}

[data-theme="dark"] .form-control:focus {
    box-shadow: 0 0 0 3px rgba(92, 107, 192, 0.2);
}

.form-control::placeholder {
    color: var(--text-muted);
}

/* Botões */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-1px);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-warning {
    background: var(--warning);
    color: #333;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.badge-pendente { background: var(--warning); color: #333; }
.badge-aceita { background: var(--info); color: white; }
.badge-coletada { background: #9c27b0; color: white; }
.badge-entregue { background: var(--success); color: white; }
.badge-cancelada { background: var(--danger); color: white; }
.badge-aprovada { background: var(--success); color: white; }
.badge-rejeitada { background: var(--danger); color: white; }

/* Alertas */
.alert {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-success {
    background: rgba(76, 175, 80, 0.15);
    color: var(--success);
    border: 1px solid var(--success);
}

.alert-danger {
    background: rgba(244, 67, 54, 0.15);
    color: var(--danger);
    border: 1px solid var(--danger);
}

.alert-info {
    background: rgba(33, 150, 243, 0.15);
    color: var(--info);
    border: 1px solid var(--info);
}

/* Grid */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: -10px;
}

.col {
    flex: 1;
    padding: 10px;
    min-width: 280px;
}

/* Seções de Perfil/Config */
.section-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
}

.section-card h3 {
    color: var(--accent);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.tab {
    padding: 12px 24px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.tab:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.tab.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

/* Filtros */
.filtros {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.filtro-btn {
    padding: 10px 20px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.filtro-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.filtro-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.filtro-btn .count {
    background: rgba(0,0,0,0.15);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}

/* Links */
a {
    color: var(--accent);
}

a:hover {
    color: var(--accent-light);
}

/* Scrollbar personalizada para tema escuro */
[data-theme="dark"] ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

[data-theme="dark"] ::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 5px;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Responsivo */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 15px;
    }
    
    .header nav {
        justify-content: center;
    }
    
    .theme-toggle {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid rgba(255,255,255,0.2);
    }
    
    .col {
        min-width: 100%;
    }
}
