/* pages/_dashboard.css - Estilos completos para o Painel do Usuário */

/* Variáveis para cores - facilita manutenção */
:root {
    --primary-color: #054d9b;
    --success-color: #28a745;
    --dark-color: #333;
}

/* Reset box-sizing para todos os elementos */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Container geral da seção do dashboard */
.dashboard-section {
    padding: 2rem 0;
    min-height: calc(100vh - 70px); /* Altura total menos header fixo */
    margin-top: 70px; /* Compensa o header fixo */
    background-color: #f8f9fa;
}

/* Container centralizado com grid para sidebar + conteúdo */
.dashboard-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header fixo (geral) */
.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    /* background: white; */
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
}

/* Sidebar com sticky para rolar junto com a página */
.dashboard-sidebar {
    position: sticky;
    top: 90px; /* 70px do header + 20px de espaçamento */
    height: calc(100vh - 90px);
    overflow-y: auto;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 1.5rem;
}

/* Perfil do usuário na sidebar */
.user-profile {
    text-align: center;
    margin-bottom: 2rem;
}

.avatar {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-color);
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Status online no avatar */
.online-status {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 15px;
    height: 15px;
    background-color: var(--success-color);
    border-radius: 50%;
    border: 2px solid white;
}

/* Nome e texto do perfil */
.user-profile h2 {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
    color: var(--dark-color);
}

.user-profile p {
    color: #666;
    font-size: 0.9rem;
}

/* Exemplo de classe para classes específicas (ex: warrior) */
.class-warrior {
    color: #C79C6E;
}

/* Menu da sidebar */
.dashboard-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dashboard-menu li {
    margin-bottom: 0.5rem;
}

.dashboard-menu a {
    display: flex;
    align-items: center;
    padding: 0.7rem 1rem;
    color: #555;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dashboard-menu a i {
    margin-right: 0.7rem;
    width: 20px;
    text-align: center;
}

.dashboard-menu a:hover {
    background-color: #f0f0f0;
    color: var(--primary-color);
}

.dashboard-menu .active a {
    background-color: var(--primary-color);
    color: white;
}

/* Conteúdo principal do dashboard */
.dashboard-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-bottom: 2rem; /* Espaço no fim para scroll */
}

/* Cartões dentro do conteúdo */
.dashboard-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
}

.card-header {
    padding: 1rem 1.5rem;
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    font-size: 1.2rem;
    color: var(--dark-color);
}

.next-vote {
    font-size: 0.9rem;
    color: #666;
}

.card-body {
    padding: 1.5rem;
}

/* Grid de status do usuário */
.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.status-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 6px;
}

.status-icon {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.1rem;
}

.status-info h4 {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.3rem;
}

.status-info p {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
}

.points {
    color: var(--primary-color) !important;
}

/* Seção de votação com botões */
.vote-sites {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.vote-site {
    text-align: center;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 6px;
}

.vote-site img {
    max-width: 150px;
    max-height: 50px;
    margin-bottom: 1rem;
}

.btn-vote {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-vote:hover:not([disabled]) {
    background-color: #0056b3;
}

.btn-vote[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #ddd;
}

/* Formulário de conta */
.account-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.account-form .form-group {
    margin-bottom: 0;
}

.account-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.9rem;
}

.account-form input,
.account-form select,
.account-form textarea {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.account-form input:focus,
.account-form select:focus,
.account-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px var(--primary-color);
}

.account-form input[readonly] {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

.form-actions {
    text-align: right;
    margin-top: 1rem;
}

/* Atalhos rápidos */
.shortcuts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
    text-align: center;
}

.shortcut-item {
    display: block;
    text-decoration: none;
    color: var(--dark-color);
    transition: transform 0.2s ease;
}

.shortcut-item:hover {
    transform: translateY(-3px);
}

.shortcut-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 0.7rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.shortcut-item span {
    font-size: 0.9rem;
    font-weight: 600;
}

/* RESPONSIVIDADE */

/* Tablets e telas médias */
@media (max-width: 992px) {
    .dashboard-container {
        grid-template-columns: 1fr;
        padding-top: 1rem;
    }
    
    .dashboard-sidebar {
        position: static;
        height: auto;
        top: auto;
        margin-bottom: 2rem;
    }
    
    .user-profile {
        flex-direction: column;
        text-align: center;
    }
    
    .avatar {
        margin: 0 auto 1rem;
        width: 80px;
        height: 80px;
    }
    
    .dashboard-menu ul {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
    }
    
    .account-form .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Celulares e telas pequenas */
@media (max-width: 576px) {
    .dashboard-section {
        padding: 1rem 0;
    }
    
    .dashboard-container {
        padding: 0 0.5rem;
    }
    
    .dashboard-sidebar {
        padding: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .status-grid {
        grid-template-columns: 1fr;
    }
    
    .vote-sites {
        grid-template-columns: 1fr;
    }
    
    .shortcuts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* Adicione ao seu arquivo CSS */
.settings-tabs {
  display: flex;
  margin-bottom: 20px;
  border-bottom: 1px solid #ddd;
}

.tab-btn {
  padding: 10px 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: #777;
  border-bottom: 3px solid transparent;
}

.tab-btn.active {
  color: #8a5a44;
  border-bottom-color: #8a5a44;
  font-weight: 600;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.form-message {
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 4px;
  display: none;
}

.form-message.success {
  background-color: #d4edda;
  color: #155724;
  display: block;
}

.form-message.error {
  background-color: #f8d7da;
  color: #721c24;
  display: block;
}