@import url("ui/premium.css"); /* 2026-09-28: padrão visual premium (fase 1) — precisa ser a 1ª linha */
/* assets/admin.css - Estilos centralizados do painel admin */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    font-family: 'Segoe UI', system-ui, sans-serif;
    min-height: 100vh;
}

/* ============================================ */
/* NAVBAR TOP */
/* ============================================ */
.navbar-top {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 10px 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-top .navbar-brand {
    color: white;
    font-weight: bold;
}

.badge-super {
    background: #ffc107;
    color: #333;
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 20px;
    margin-left: 5px;
}

/* ============================================ */
/* SIDEBAR PREMIUM */
/* ============================================ */
.sidebar-premium {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 4px 0 20px rgba(0,0,0,0.1);
}

.sidebar-premium .nav-link {
    color: rgba(255,255,255,0.8);
    padding: 12px 20px;
    margin: 5px 12px;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.sidebar-premium .nav-link:hover {
    background: rgba(255,255,255,0.15);
    color: white;
    transform: translateX(5px);
}

.sidebar-premium .nav-link.active {
    background: rgba(255,255,255,0.25);
    color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.sidebar-premium .nav-header {
    color: rgba(255,255,255,0.5);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 15px 20px 5px 20px;
}

/* ============================================ */
/* CARDS E ESTATÍSTICAS */
/* ============================================ */
.stat-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.stat-card .stat-icon { font-size: 2rem; margin-bottom: 12px; }
.stat-card .stat-value { font-size: 2rem; font-weight: 800; line-height: 1.2; }
.stat-card .stat-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; color: #64748b; margin-top: 8px; }

/* Cores dos cards */
.stat-card.primary { background: linear-gradient(135deg, #667eea, #764ba2); color: white; }
.stat-card.success { background: linear-gradient(135deg, #10b981, #059669); color: white; }
.stat-card.warning { background: linear-gradient(135deg, #f59e0b, #d97706); color: white; }
.stat-card.danger { background: linear-gradient(135deg, #ef4444, #dc2626); color: white; }
.stat-card.info { background: linear-gradient(135deg, #3b82f6, #2563eb); color: white; }

.stat-card.primary .stat-label,
.stat-card.success .stat-label,
.stat-card.warning .stat-label,
.stat-card.danger .stat-label,
.stat-card.info .stat-label {
    color: rgba(255,255,255,0.8);
}

/* ============================================ */
/* TABELAS */
/* ============================================ */
.table-wrapper {
    overflow-x: auto;
    overflow-y: auto;
    max-height: 500px;
    scrollbar-width: thin;
}

.table-premium {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 900px;
}

.table-premium thead th {
    position: sticky;
    top: 0;
    background: #f8fafc;
    z-index: 10;
    padding: 12px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b;
    border-bottom: 2px solid #e2e8f0;
}

.table-premium tbody tr:hover {
    background: #f8fafc;
}

.table-premium td {
    padding: 12px;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
}

/* ============================================ */
/* BOTÕES */
/* ============================================ */
.btn-primary-custom {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    border-radius: 40px;
    padding: 10px 24px;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102,126,234,0.4);
    color: white;
}

.btn-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-edit { background: #e0e7ff; color: #4338ca; }
.btn-edit:hover { background: #4338ca; color: white; transform: translateY(-2px); }
.btn-delete { background: #fee2e2; color: #dc2626; }
.btn-delete:hover { background: #dc2626; color: white; transform: translateY(-2px); }

/* ============================================ */
/* BADGES */
/* ============================================ */
.badge-admin { background: linear-gradient(135deg, #e0e7ff, #c7d2fe); color: #4338ca; }
.badge-operador { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #92400e; }
.badge-ativo { background: linear-gradient(135deg, #d1fae5, #a7f3d0); color: #065f46; }
.badge-inativo { background: linear-gradient(135deg, #fee2e2, #fecaca); color: #991b1b; }

/* ============================================ */
/* MODAL PREMIUM */
/* ============================================ */
.modal-premium .modal-content {
    border-radius: 28px;
    border: none;
    overflow: hidden;
}

.modal-premium .modal-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
}

/* ============================================ */
/* TOAST (mensagens flutuantes) */
/* ============================================ */
.toast-premium {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: white;
    border-radius: 16px;
    padding: 12px 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1100;
    animation: slideInRight 0.3s ease;
    font-weight: 500;
}

.toast-premium.success { border-left: 4px solid #10b981; }
.toast-premium.error { border-left: 4px solid #ef4444; }

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ============================================ */
/* RESPONSIVIDADE */
/* ============================================ */
@media (max-width: 768px) {
    .main-content { padding: 15px; }
    .stat-card .stat-value { font-size: 1.3rem; }
    .sidebar-premium { min-height: auto; }
}