/**
 * Sistema de Gamificação - Estilos Padronizados
 * Tema: Dark Blue (#0f172a) com acentos dourados (#ffd700)
 */

/* Reset e Estilos Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #fff;
    background-color: #0f172a;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Tipografia */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: #ffd700;
    margin-bottom: 15px;
}

h1 {
    font-size: 2rem;
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

h2 {
    font-size: 1.7rem;
}

h3 {
    font-size: 1.4rem;
}

p {
    margin-bottom: 15px;
}

a {
    color: #ffd700;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #ffea00;
    text-decoration: underline;
}

/* Menu de Navegação Padrão */
.nav-header {
    background-color: #1e293b;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    margin-bottom: 30px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffd700;
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-logo i {
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    gap: 5px;
}

.nav-item {
    padding: 8px 15px;
    border-radius: 5px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-item:hover {
    background-color: rgba(255, 215, 0, 0.1);
    color: #ffd700;
    text-decoration: none;
}

.nav-item.active {
    background-color: rgba(255, 215, 0, 0.2);
    color: #ffd700;
    font-weight: 500;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-user span {
    color: #ddd;
}

/* Botões */
.btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #ffd700;
    color: #0f172a;
}

.btn-primary:hover {
    background-color: #ffea00;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background-color: #4caf50;
    color: white;
}

.btn-secondary:hover {
    background-color: #5dbd61;
    transform: translateY(-2px);
}

.btn-danger {
    background-color: #f44336;
    color: white;
}

.btn-danger:hover {
    background-color: #ff5c4f;
    transform: translateY(-2px);
}

.btn-light {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.btn-light:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Cards */
.card {
    background-color: rgba(22, 33, 62, 0.8);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
}

.card-title {
    color: #ffd700;
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0;
}

.card-body {
    color: #ddd;
}

/* Grids */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Estatísticas */
.stat-card {
    text-align: center;
    padding: 15px;
}

.stat-label {
    display: block;
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.stat-value {
    display: block;
    color: #fff;
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #ddd;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border-radius: 5px;
    border: 1px solid #444;
    background-color: #2d3748;
    color: #fff;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #ffd700;
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.2);
    outline: none;
}

/* Tabelas */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.table th,
.table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.table th {
    background-color: rgba(22, 33, 62, 0.8);
    color: #ffd700;
    font-weight: 600;
}

.table tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Mensagens */
.message {
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    animation: fadeIn 0.3s;
}

.success {
    background-color: rgba(76, 175, 80, 0.2);
    border: 1px solid #4caf50;
    color: #4caf50;
}

.error {
    background-color: rgba(244, 67, 54, 0.2);
    border: 1px solid #f44336;
    color: #f44336;
}

.warning {
    background-color: rgba(255, 193, 7, 0.2);
    border: 1px solid #ffc107;
    color: #ffc107;
}

.info {
    background-color: rgba(33, 150, 243, 0.2);
    border: 1px solid #2196f3;
    color: #2196f3;
}

/* Modais */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: #1e293b;
    margin: 10% auto;
    padding: 25px;
    border-radius: 10px;
    width: 80%;
    max-width: 600px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: #ffd700;
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Responsividade */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-user {
        flex-direction: column;
        gap: 10px;
    }
    
    .grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 5% auto;
        padding: 15px;
    }
}

/* Admin específico */
.admin-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    background-color: #1e293b;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.admin-content {
    background-color: rgba(22, 33, 62, 0.5);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

/* Utilitários */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }

/* Responsive Admin Menu Styles */
.nav-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #16213e;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.nav-logo {
    display: flex;
    align-items: center;
    color: #ffd700;
    font-size: 1.2rem;
    font-weight: bold;
}

.nav-logo i {
    margin-right: 0.5rem;
    font-size: 1.4rem;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-item {
    display: flex;
    align-items: center;
    color: #e0e0e0;
    text-decoration: none;
    padding: 0.5rem 0.8rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.nav-item.active {
    background-color: rgba(255, 215, 0, 0.2);
    color: #ffd700;
}

.nav-item i {
    margin-right: 0.5rem;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #e0e0e0;
}

.user-greeting {
    display: block;
}

.user-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-light {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.btn-light:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.btn-light i {
    margin-right: 0.4rem;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .nav-text, .btn-text {
        font-size: 0.9rem;
    }
    
    .nav-item {
        padding: 0.4rem 0.6rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: #16213e;
        padding: 1rem;
        gap: 0.8rem;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-item {
        width: 100%;
        padding: 0.8rem;
    }
    
    .user-greeting {
        display: none;
    }
}

@media (max-width: 576px) {
    .nav-container {
        padding: 0.6rem 1rem;
    }
    
    .nav-logo span {
        display: none;
    }
    
    .btn-text {
        display: none;
    }
    
    .btn-light i {
        margin-right: 0;
    }
    
    .user-actions {
        gap: 0.3rem;
    }
}

/* Estilos para o menu de notificações */
.notification-dropdown {
    position: relative;
    margin-right: 15px;
}

.notification-icon {
    position: relative;
    color: #e2e8f0;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
}

.notification-icon:hover {
    color: #ffd700;
}

.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(45deg, #ffd700, #ff9d00);
    color: #0f172a;
    font-size: 0.7rem;
    font-weight: bold;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

.notification-menu {
    position: absolute;
    top: 100%;
    right: -10px;
    width: 300px;
    background-color: #1e293b;
    border-radius: 10px;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2), 0 3px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.2);
    z-index: 1000;
    overflow: hidden;
    display: none;
    max-height: 400px;
    flex-direction: column;
}

.notification-header {
    padding: 12px 15px;
    background-color: rgba(30, 41, 59, 0.9);
    color: #ffd700;
    font-size: 1rem;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
    margin: 0;
}

.notification-list {
    overflow-y: auto;
    max-height: 300px;
}

.notification-item {
    display: block;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    color: #e2e8f0;
    text-decoration: none;
    transition: background-color 0.3s;
}

.notification-item:hover {
    background-color: rgba(255, 215, 0, 0.05);
}

.notification-item.unread {
    background-color: rgba(255, 215, 0, 0.1);
}

.notification-title {
    font-weight: bold;
    margin-bottom: 5px;
    color: #ffd700;
}

.notification-preview {
    font-size: 0.85rem;
    margin-bottom: 5px;
    color: #e2e8f0;
}

.notification-time {
    font-size: 0.75rem;
    color: #94a3b8;
    text-align: right;
}

.notification-empty {
    padding: 20px;
    text-align: center;
    color: #94a3b8;
}

.notification-footer {
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    background-color: rgba(30, 41, 59, 0.9);
}

.notification-footer a {
    color: #ffd700;
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.3s;
}

.notification-footer a:hover {
    color: #ff9d00;
    text-decoration: underline;
}

/* Script para mostrar/esconder o menu de notificações */
.notification-dropdown:hover .notification-menu,
.notification-menu:hover {
    display: flex;
}