/* Tema inspirado no Discord */
:root {
    --primary: #5865F2;
    --secondary: #2C2F33;
    --background: #36393F;
    --text: #DCDDDE;
    --accent: #7289DA;
    --danger: #ED4245;
    --warning: #F1C40F;
    --success: #2ECC71;
    --card-bg: #23272A;
    --shadow: 0 4px 10px rgba(0,0,0,0.3);
    --light-bg: #F2F3F5;
    --light-text: #2E3338;
}

[data-theme="light"] {
    --background: var(--light-bg);
    --text: var(--light-text);
    --secondary: #FFFFFF;
    --card-bg: #FFFFFF;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background);
    color: var(--text);
    overflow-x: hidden;
}

.theme-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
}

#theme-toggle-btn {
    background: var(--secondary);
    border: none;
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.3s;
}

#theme-toggle-btn:hover {
    background: var(--accent);
}

.header {
    background: var(--secondary);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img, .sidebar-logo {
    font-size: 2rem; /* Tamanho do ícone */
    color: var(--primary);
    margin-right: 1rem;
}

.nav .btn {
    margin-left: 1rem;
}

.main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    animation: fadeIn 1s ease-in;
}

.hero-content {
    max-width: 50%;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

.hero-animation {
    width: 200px;
    height: 200px;
}

.pulse circle {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { stroke-opacity: 1; transform: scale(1); }
    50% { stroke-opacity: 0.3; transform: scale(1.2); }
    100% { stroke-opacity: 1; transform: scale(1); }
}

.features {
    margin: 3rem 0;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    text-align: center;
}

.feature-card i {
    color: var(--primary);
    margin-bottom: 1rem;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.login-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    max-width: 400px;
    animation: slideIn 0.5s ease-in;
}

.btn {
    background: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s, transform 0.2s;
}

.btn:hover {
    background: var(--accent);
    transform: translateY(-2px);
}

.btn-discord {
    background: #7289DA;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    font-weight: 500;
    width: 100%; /* Ocupa toda a largura do cartão */
    box-sizing: border-box;
    border-radius: 8px;
}

.btn-discord .discord-icon {
    font-size: 1.5rem; /* Tamanho do ícone */
    color: white;
}

.btn-discord:hover {
    background: #677BC4;
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--primary);
}

.btn-warning {
    background: var(--warning);
}

.btn-success {
    background: var(--success);
}

.btn-danger {
    background: var(--danger);
}

.btn-logout {
    background: var(--danger);
}

.btn-logout:hover {
    background: #c0392b;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100%;
    background: var(--secondary);
    padding: 1rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.sidebar-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-item {
    padding: 0.75rem;
    color: var(--text);
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
}

.sidebar-item:hover, .sidebar-item.active {
    background: var(--primary);
}

.ranking-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 250px;
    height: 100%;
    background: var(--card-bg);
    padding: 1rem;
    box-shadow: var(--shadow);
    overflow-y: auto;
}

.ranking-panel h3 {
    margin-bottom: 1rem;
}

.ranking-panel ul {
    list-style: none;
    padding: 0;
}

.ranking-panel li {
    padding: 0.5rem;
    border-bottom: 1px solid #3A3C3F;
}

.dashboard {
    margin-left: 270px;
    margin-right: 270px;
}

.dashboard-header {
    margin-bottom: 2rem;
}

.profile-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    animation: slideIn 0.5s ease-in;
}

.profile-avatar img, .profile-avatar i {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid var(--primary);
    margin-bottom: 1rem;
    font-size: 3rem; /* Tamanho do ícone de avatar padrão */
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary);
}

.profile-details p {
    margin: 0.5rem 0;
}

.points-controls {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin: 1rem 0;
}

.points-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.points-actions select, .controls select {
    padding: 0.75rem;
    background: #23272A;
    border: 1px solid #3A3C3F;
    color: var(--text);
    border-radius: 4px;
}

.controls {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.controls input {
    padding: 0.75rem;
    background: #23272A;
    border: 1px solid #3A3C3F;
    color: var(--text);
    border-radius: 4px;
    width: 200px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #3A3C3F;
}

th {
    background: var(--secondary);
    cursor: pointer;
}

th:hover .sort-icon {
    opacity: 1;
}

.sort-icon {
    opacity: 0.5;
    transition: opacity 0.3s;
}

tr:hover {
    background: #2A2D31;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--card-bg);
    padding: 1rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    animation: slideIn 0.3s ease-in;
}

.close {
    float: right;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text);
}

form input {
    display: block;
    width: 100%;
    padding: 0.75rem;
    margin: 0.5rem 0;
    background: #23272A;
    border: 1px solid #3A3C3F;
    color: var(--text);
    border-radius: 4px;
}

.footer {
    text-align: center;
    padding: 1.5rem;
    background: var(--secondary);
    box-shadow: var(--shadow);
}

.notification {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: var(--primary);
    color: white;
    padding: 1rem;
    border-radius: 4px;
    box-shadow: var(--shadow);
    animation: slideIn 0.3s ease-in;
    z-index: 1000;
}

.notification.error {
    background: var(--danger);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 1024px) {
    .sidebar, .ranking-panel {
        width: 200px;
    }
    .dashboard {
        margin-left: 220px;
        margin-right: 220px;
    }
}

@media (max-width: 768px) {
    .sidebar, .ranking-panel {
        width: 100%;
        height: auto;
        position: relative;
    }
    .dashboard {
        margin-left: 0;
        margin-right: 0;
    }
    .hero {
        flex-direction: column;
        text-align: center;
    }
    .hero-content {
        max-width: 100%;
    }
}
