/* public/assets/css/account.css */

/* --- Layout Geral --- */
.bg-light { background-color: #f8f9fa; }
.my-account-wrap { padding-top: 40px; padding-bottom: 80px; }

/* Grid Principal (Sidebar + Conteúdo) */
.account-dashboard {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 30px;
    margin-top: 30px;
}

@media(max-width: 768px) {
    .account-dashboard { grid-template-columns: 1fr; }
}

/* --- Sidebar (Menu Lateral) --- */
.acc-sidebar {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 20px;
    height: fit-content;
}

.acc-menu a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: #555;
    text-decoration: none;
    border-radius: 6px;
    margin-bottom: 5px;
    transition: 0.2s;
    font-weight: 500;
    cursor: pointer;
}

.acc-menu a:hover, .acc-menu a.active {
    background: #fdf2ff;
    color: #800080;
}

.acc-menu a i {
    margin-right: 10px;
    font-style: normal;
    font-size: 18px;
}

/* --- Hero (Topo com Avatar) --- */
.acc-hero {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    flex-wrap: wrap;
    gap: 20px;
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 20px;
}

.avatar-circle {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #800080, #b030b0);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(128,0,128,0.3);
}

.user-details h1 { font-size: 22px; margin: 0; color: #333; }
.user-details span { font-size: 14px; color: #777; }

/* --- Box de Pontos e Gamificação --- */
.points-card {
    background: #fdf2ff;
    border: 1px solid #f3d0fc;
    padding: 15px 25px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 0 auto;
}

.points-val { font-size: 24px; font-weight: 800; color: #800080; }
.referral-code {
    background: #fff;
    padding: 5px 10px;
    border: 1px dashed #800080;
    border-radius: 4px;
    font-family: monospace;
    font-size: 16px;
    margin-top: 5px;
    color: #333;
}

/* --- Sistema de Abas --- */
.tab-content { display: none; animation: fadeIn 0.3s ease; }
.tab-content.active { display: block; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Tabelas de Pedidos --- */
.ls-table { width: 100%; border-collapse: collapse; margin-top: 15px; }
.ls-table th { text-align: left; padding: 12px; background: #f9f9f9; color: #666; font-size: 13px; text-transform: uppercase; }
.ls-table td { padding: 12px; border-bottom: 1px solid #eee; font-size: 14px; }

/* Badges de Status */
.status-badge { padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: bold; text-transform: uppercase; }
.st-pending { background: #fff3cd; color: #856404; }
.st-paid { background: #d1e7dd; color: #0f5132; }
.st-cancel { background: #f8d7da; color: #721c24; }

/* --- Grid de Favoritos --- */
.fav-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; }
.fav-item { background: #fff; border: 1px solid #eee; border-radius: 8px; padding: 10px; text-align: center; transition: 0.2s; }
.fav-item:hover { box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.fav-img { width: 100%; height: 150px; object-fit: cover; border-radius: 4px; }
.fav-title { font-size: 14px; font-weight: 600; margin: 10px 0; display: block; color: #333; text-decoration: none; }

/* --- Formulários --- */
.acc-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
@media(max-width: 600px) { .acc-form-grid { grid-template-columns: 1fr; } }

.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; color: #555; }
.field input, .field select { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 6px; box-sizing: border-box; }
/* Input Travado (Disabled) */
.field input:disabled { background: #f5f5f5; color: #888; cursor: not-allowed; }

/* Botões */
.btn-sm { font-size: 12px; padding: 6px 12px; background: #eee; color: #333; text-decoration: none; border-radius: 4px; transition: 0.2s; }
.btn-sm:hover { background: #ddd; }

/* Estados Vazios */
.empty-state { text-align: center; padding: 40px; background: #f9f9f9; border-radius: 8px; }

