/* COMPETE - Estilos Principais */
/* Mobile-First Responsive Design */

/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', sans-serif;
    background-color: #0d1b2a;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    padding-bottom: 80px; /* Espaço para o menu inferior */
}

/* Página de Boas-vindas */
.welcome-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #262626;
}

.welcome-container {
    text-align: center;
    padding: 20px;
    max-width: 400px;
    width: 100%;
}

/* Centralizar botão na página de boas-vindas */
.welcome-container .btn-primary {
    display: block;
    margin: 30px auto;
    width: auto;
    min-width: 200px;
}

/* Mascote */
/* Logo Video Container */
.logo-container {
    margin-bottom: 20px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    outline: none;
    background: transparent;
    background-color: transparent;
    overflow: hidden;
}

.logo-wrapper {
    width: 250px;
    height: 250px;
    border-radius: 0;
    overflow: hidden;
    background: transparent;
    background-color: transparent;
    position: relative;
    box-shadow: none;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-image {
    max-width: 150px;
    max-height: 150px;
    width: auto;
    height: auto;
    border-radius: 0;
    object-fit: contain;
    object-position: center;
    animation: logoFloat 3s ease-in-out infinite;
    transition: transform 0.3s ease;
    border: none;
    outline: none;
    background: transparent;
    background-color: transparent;
    display: block;
    box-shadow: none;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.logo-image:hover {
    transform: scale(1.05);
}

/* Estilos para logo estático */
.logo-image {
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Animação do logo */
@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.logo-fallback {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #0b95da, #3b82f6);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    animation: logoFloat 3s ease-in-out infinite;
    border: none;
    outline: none;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
}

/* Animação do logo */
@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Título */
.welcome-title {
    font-size: 28px;
    font-weight: 700;
    margin: 20px 0 30px 0;
    color: #ffffff;
}

.app-name {
    color: #0b95da;
}

/* Botão Principal */
/* Removido .btn-primary principal - agora controlado pelo profile.php */

/* Links Legais */
.legal-links {
    margin-top: 40px;
}

.legal-text {
    color: #93a2b7;
    font-size: 14px;
    margin-bottom: 10px;
}

.legal-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.legal-link {
    color: #0b95da;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.legal-link:hover {
    color: #0a7bb8;
}

.legal-separator {
    color: #93a2b7;
    font-size: 14px;
}

/* Responsividade */
@media (min-width: 768px) {
    .welcome-container {
        max-width: 500px;
    }
    
    .welcome-title {
        font-size: 32px;
    }
    
    .logo-wrapper {
        width: 300px;
        height: 300px;
        border-radius: 0;
        box-shadow: none;
    }
    
    .logo-fallback {
        width: 300px;
        height: 300px;
        border-radius: 0;
        box-shadow: none;
    }
}

/* Responsividade para mobile */
@media (max-width: 480px) {
    .logo-wrapper {
        width: 220px;
        height: 220px;
        border-radius: 0;
        box-shadow: none;
    }
    
    .logo-fallback {
        width: 220px;
        height: 220px;
        border-radius: 0;
        box-shadow: none;
    }
    
    .logo-text {
        font-size: 20px;
    }
    
    .welcome-container .btn-primary {
        width: 100%;
        max-width: 280px;
        margin: 25px auto;
    }
    
    .auth-container {
        padding: 20px 15px;
    }
    
    .btn-google, .btn-apple {
        padding: 14px 16px;
        font-size: 15px;
    }
    
    /* Melhorias para mobile muito pequeno */
    .welcome-title {
        font-size: 24px;
        margin: 15px 0 20px 0;
    }
    
    .legal-links {
        margin-top: 30px;
    }
    
    .legal-text {
        font-size: 12px;
    }
    
    /* Responsividade para autenticação */
    .auth-container {
        padding: 30px 20px;
        max-width: 100%;
    }
    
    .app-title {
        font-size: 28px;
    }
    
    .auth-tabs {
        margin-bottom: 25px;
    }
    
    .tab-btn {
        padding: 10px 16px;
        font-size: 15px;
    }
    
    .auth-form .form-group input {
        padding: 14px 16px;
        font-size: 16px;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Unificação de largura para inputs e botão */
    .auth-form input,
    .auth-form .btn-primary {
        width: 100%;
        display: block;
        box-sizing: border-box;
    }
    
    .auth-form .btn-primary {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
    
    .form-options {
        justify-content: flex-start;
        align-items: center;
    }
    
    .forgot-password-section {
        margin: 15px 0;
    }
    
    .auth-divider {
        margin: 25px 0;
    }
    
    .social-login {
        gap: 12px;
    }
    
    .btn-google, .btn-apple {
        padding: 14px 20px;
        font-size: 15px;
    }
    
    .auth-footer {
        margin-top: 25px;
    }
}

/* Mobile muito pequeno (320px) */
@media (max-width: 320px) {
    .logo-wrapper {
        width: 180px;
        height: 180px;
    }
    
    .logo-fallback {
        width: 180px;
        height: 180px;
    }
    
    .welcome-title {
        font-size: 20px;
    }
    
    .welcome-container .btn-primary {
        padding: 12px 20px;
        font-size: 16px;
    }
    
    .auth-container {
        padding: 15px 10px;
    }
    
    /* Autenticação para mobile muito pequeno */
    .app-title {
        font-size: 24px;
    }
    
    .auth-tabs {
        margin-bottom: 20px;
    }
    
    .tab-btn {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .auth-form .form-group {
        margin-bottom: 15px;
    }
    
    .auth-form .form-group input {
        padding: 12px 14px;
        font-size: 15px;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Unificação de largura para inputs e botão */
    .auth-form input,
    .auth-form .btn-primary {
        width: 100%;
        display: block;
        box-sizing: border-box;
    }
    
    .auth-form .btn-primary {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
    
    .form-options {
        justify-content: flex-start;
        align-items: center;
    }
    
    .forgot-password-section {
        margin: 12px 0;
    }
    
    .btn-google, .btn-apple {
        padding: 12px 16px;
        font-size: 14px;
    }
}

/* Tablet (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .logo-wrapper {
        width: 300px;
        height: 300px;
    }
    
    .logo-fallback {
        width: 300px;
        height: 300px;
    }
    
    .welcome-container {
        max-width: 500px;
    }
    
    .auth-container {
        max-width: 450px;
        padding: 50px 40px;
    }
    
    /* Autenticação para tablet */
    .app-title {
        font-size: 36px;
    }
    
    .auth-tabs {
        margin-bottom: 35px;
    }
    
    .tab-btn {
        padding: 14px 24px;
        font-size: 17px;
    }
    
    .auth-form .form-group input {
        padding: 16px 20px;
        font-size: 17px;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Unificação de largura para inputs e botão */
    .auth-form input,
    .auth-form .btn-primary {
        width: 100%;
        display: block;
        box-sizing: border-box;
    }
    
    .auth-form .btn-primary {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
    
    .form-options {
        margin-bottom: 30px;
        justify-content: flex-start;
        align-items: center;
    }
    
    .forgot-password-section {
        margin: 25px 0;
    }
    
    .btn-google, .btn-apple {
        padding: 16px 24px;
        font-size: 16px;
    }
    
    .auth-footer {
        margin-top: 35px;
    }
}

/* Página de Autenticação */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0d1b2a 0%, #1a2332 100%);
    padding: 0;
    margin: 0;
}

.auth-container {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 40px 20px;
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
    box-shadow: none;
}

/* Header da autenticação */
.auth-header {
    margin-bottom: 30px;
}

.app-title {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

/* Tabs de autenticação */
.auth-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 30px;
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: #93a2b7;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: #3b82f6;
    color: #ffffff;
}

.tab-btn:hover:not(.active) {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

/* Formulários de autenticação */
.auth-form {
    display: none !important;
    text-align: left;
    width: 100%;
}

.auth-form.active {
    display: block !important;
}

/* Garantir que apenas um formulário seja exibido */
#loginForm:not(.active),
#registerForm:not(.active) {
    display: none !important;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form .form-group label {
    display: block;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.auth-form .form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* Unificação de largura para inputs e botão */
.auth-form input,
.auth-form .btn-primary {
    width: 100%;
    display: block;
    box-sizing: border-box;
}

.auth-form .form-group input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.auth-form .form-group input:focus {
    outline: none;
    border-color: #3b82f6;
    background: rgba(255, 255, 255, 0.15);
}

/* Botão de login ocupando toda a largura */
.auth-form .btn-primary {
    display: block;
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    background: #3b82f6;
    color: #ffffff;
    cursor: pointer;
    margin-top: 10px;
    box-sizing: border-box;
}

.auth-form .btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.auth-form .btn-primary:active {
    transform: translateY(0);
}


/* Opções do formulário */
.form-options {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 25px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    color: #ffffff;
    font-size: 14px;
    cursor: pointer;
}

.checkbox-container input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    margin-right: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-container input[type="checkbox"]:checked + .checkmark {
    background: #3b82f6;
    border-color: #3b82f6;
}

.checkbox-container input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 12px;
    font-weight: bold;
}

.forgot-password {
    color: #3b82f6;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #60a5fa;
}

/* Seção Esqueceu a senha */
.forgot-password-section {
    text-align: center;
    margin: 20px 0;
}

.forgot-password-section .forgot-password {
    color: #3b82f6;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-password-section .forgot-password:hover {
    color: #60a5fa;
}

/* Divisor */
.auth-divider {
    position: relative;
    text-align: center;
    margin: 30px 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.auth-divider span {
    background: linear-gradient(135deg, #0d1b2a 0%, #1a2332 100%);
    color: #93a2b7;
    padding: 0 20px;
    font-size: 14px;
    position: relative;
    z-index: 1;
}

/* Footer da autenticação */
.auth-footer {
    margin-top: 30px;
    text-align: center;
}

.auth-footer p {
    color: #93a2b7;
    font-size: 14px;
    margin: 0;
}

.auth-footer a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.auth-footer a:hover {
    color: #60a5fa;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.app-title {
    font-size: 32px;
    font-weight: 700;
    color: #0b95da;
    margin: 0;
}

.auth-tabs {
    display: flex;
    margin-bottom: 30px;
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    color: #93a2b7;
    padding: 15px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}



.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #ffffff;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 15px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 10px;
    background: #0d1b2a;
    color: #ffffff;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #0b95da;
}

.form-group input.error {
    border-color: #ff4444;
}

.social-login {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Botão Google Original */
.btn-google {
    background: #ffffff;
    color: #3c4043;
    border: 1px solid #dadce0;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    margin-bottom: 12px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-google:hover {
    background: #f8f9fa;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Botão Apple Original */
.btn-apple {
    background: #000000;
    color: #ffffff;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    transition: all 0.2s ease;
}

.btn-apple:hover {
    background: #1a1a1a;
}

.google-icon {
    width: 20px;
    height: 20px;
    background: #4285f4;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 12px;
    font-family: 'Roboto', sans-serif;
}

.apple-icon {
    width: 20px;
    height: 20px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000000;
    font-size: 12px;
    font-weight: 700;
}

/* Dashboard */
.dashboard-page {
    min-height: 100vh;
    background: #1a1a1a;
    padding-bottom: 80px;
}

.dashboard-header {
    background: #2a2a2a;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #444;
}

.menu-btn, .profile-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.menu-btn:hover, .profile-btn:hover {
    background: #444;
}

.dashboard-title {
    font-size: 24px;
    font-weight: 700;
    color: #0b95da;
    margin: 0;
}

.dashboard-content {
    padding: 20px;
}

.welcome-section {
    text-align: center;
    margin-bottom: 30px;
}

.welcome-section h2 {
    font-size: 28px;
    color: #ffffff;
    margin-bottom: 10px;
}

.welcome-section p {
    color: #93a2b7;
    font-size: 16px;
}

.features-placeholder {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
}

.feature-card {
    background: #2a2a2a;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid #444;
}

.feature-card h3 {
    font-size: 20px;
    color: #0b95da;
    margin-bottom: 10px;
}

.feature-card p {
    color: #93a2b7;
    font-size: 14px;
}

.feature-card.available {
    border-color: #0b95da;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
}

.feature-card.available h3 {
    color: #0b95da;
}

.btn-feature {
    display: inline-block;
    background: #0b95da;
    color: #ffffff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.btn-feature:hover {
    background: #0a7bb8;
    transform: translateY(-2px);
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #2a2a2a;
    display: flex;
    border-top: 1px solid #444;
    z-index: 1000;
    height: 70px; /* Altura definida do menu */
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 5px;
    text-decoration: none;
    color: #93a2b7;
    transition: color 0.3s ease;
}

.nav-item.active {
    color: #0b95da;
}

.nav-icon {
    font-size: 20px;
    margin-bottom: 5px;
}

.nav-label {
    font-size: 12px;
    font-weight: 500;
}

/* Mensagens */
.message {
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
    font-weight: 500;
}

/* Mensagens fixas no topo */
.message-fixed {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    min-width: 300px;
    max-width: calc(100vw - 40px);
    animation: slideInFromRight 0.4s ease-out;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
    padding: 16px 24px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.message-success {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    color: #166534;
    border: 1px solid #bbf7d0;
    border-left: 4px solid #22c55e;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.1);
}

.message-error {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: #991b1b;
    border: 1px solid #fecaca;
    border-left: 4px solid #ef4444;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.1);
}

.message-info {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    color: #1e40af;
    border: 1px solid #bae6fd;
    border-left: 4px solid #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

/* Utilitários */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-20 {
    margin-top: 20px;
}

/* Página de Grupos */
.groups-page {
    min-height: 100vh;
    background: #1a1a1a;
    padding-bottom: 80px;
}

.page-header {
    background: #2a2a2a;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #444;
}

.back-btn, .add-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.back-btn:hover, .add-btn:hover {
    background: #444;
}

.page-title {
    font-size: 24px;
    font-weight: 700;
    color: #0b95da;
    margin: 0;
}

.page-content {
    padding: 20px;
}

.action-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

/* Removido CSS duplicado - agora controlado pelo profile.php */

.btn-secondary {
    background: #0e3447;
    color: #0b95da;
    border: 1px solid #0b95da;
}

.btn-secondary:hover {
    background: #0b95da;
    color: #ffffff;
}

.btn-icon {
    font-size: 18px;
}

/* Lista de Grupos */
.groups-list {
    display: grid;
    gap: 6px;
    padding: 20px 0;
}

.group-card {
    background: #2a2a2a;
    border-radius: 15px;
    padding: 24px;
    border: 1px solid #444;
    transition: transform 0.3s ease;
    margin-bottom: 16px;
}

.group-card:hover {
    transform: translateY(-2px);
}

.group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.group-name {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.group-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.group-badge.admin {
    background: #0b95da;
    color: #ffffff;
}

.group-badge.member {
    background: #444;
    color: #93a2b7;
}

.group-description {
    color: #93a2b7;
    margin-bottom: 15px;
    line-height: 1.5;
}

.group-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #93a2b7;
    font-size: 14px;
}

.stat-icon {
    font-size: 16px;
}

.group-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
    margin-top: 8px;
}

.btn-action {
    background: #444;
    color: #ffffff;
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background 0.3s ease;
}

.btn-action:hover {
    background: #555;
}

.btn-action.danger {
    background: #ff4444;
}

.btn-action.danger:hover {
    background: #cc3333;
}

/* Estados Vazios */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #93a2b7;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 24px;
    color: #ffffff;
    margin-bottom: 10px;
}

.empty-state p {
    font-size: 16px;
    line-height: 1.5;
}

/* Estado de Carregamento */
.loading-state {
    text-align: center;
    padding: 60px 20px;
    color: #93a2b7;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #2a3441;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-state p {
    font-size: 16px;
    color: #93a2b7;
}

/* Modais */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: stretch;
    justify-content: center;
    z-index: 1000;
    padding: 0 !important;
    margin: 0 !important;
}

.modal:not(.hidden) {
    display: flex !important;
}

.modal-content {
    background: #1a2332;
    border-radius: 0;
    max-width: 100% !important;
    width: 100% !important;
    height: 100vh !important;
    overflow-y: auto;
    margin: 0 !important;
    border: none;
    padding: 0 !important;
    padding-bottom: 120px !important;
    display: flex;
    flex-direction: column;
    box-shadow: none;
    outline: none;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(59, 130, 246, 0.3);
    background: #1a2332;
    position: sticky;
    top: 0;
    z-index: 10;
}

.modal-header h2 {
    font-size: 12px;
    color: #93a2b7;
    margin: 0;
}

.close-btn {
    background: #374151;
    border: none;
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.close-btn:hover {
    background: #4b5563;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.modal-form {
    padding: 20px;
}

.modal-body {
    padding: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #ffffff;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    background: #0d1b2a;
    color: #ffffff;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #0b95da;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-help {
    color: #93a2b7;
    font-size: 12px;
    margin-top: 5px;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
}

.form-actions .btn-primary,
.form-actions .btn-secondary {
    flex: 1;
    min-width: 120px;
    max-width: 150px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

/* Código do Grupo */
.code-display {
    margin: 20px 0;
}

.code-container {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.code-input {
    flex: 1;
    background: #0d1b2a;
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #0b95da;
    font-family: monospace;
    font-weight: bold;
}

.btn-copy {
    background: #0b95da;
    color: #ffffff;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
}

.btn-copy:hover {
    background: #0a7bb8;
}

.code-help {
    color: #93a2b7;
    font-size: 14px;
    margin-top: 15px;
}

/* Detalhes do Grupo */
.group-details {
    color: #ffffff;
}

.detail-section {
    margin-bottom: 30px;
}

.detail-section h3 {
    color: #0b95da;
    margin-bottom: 15px;
}

.detail-section p {
    margin-bottom: 10px;
    line-height: 1.5;
}

.members-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.member-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #1a1a1a;
    border-radius: 10px;
}

.member-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.member-info {
    flex: 1;
}

.member-name {
    display: block;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 5px;
}

.member-joined {
    font-size: 12px;
    color: #93a2b7;
}

/* Loading */
.loading {
    text-align: center;
    color: #93a2b7;
    padding: 40px;
    font-size: 16px;
}

/* Página de Ranking */
.ranking-page {
    min-height: 100vh;
    background: #0e191e;
    color: #ffffff;
    font-family: 'Nunito', sans-serif;
}

.ranking-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(26, 35, 50, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #2a2a2a;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left {
    flex: 1;
    display: flex;
    align-items: center;
}

.header-center {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.menu-btn {
    background: none;
    border: none;
    color: #93a2b7;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.menu-btn:hover {
    background: #2a2a2a;
    color: #ffffff;
}

.ranking-title {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    text-align: center;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #0b95da;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.user-avatar .avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.user-avatar:hover {
    background: #0a7bb8;
    transform: scale(1.05);
}

.avatar-initial {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
}

.ranking-content {
    padding: 16px;
}

/* Pódio dos Atletas */
.podium-container {
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
    padding: 20px 0;
}

.podium-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.podium-item.second {
    order: 1;
}

.podium-item.first {
    order: 2;
    margin: 0 8px;
}

.podium-item.third {
    order: 3;
}

.athlete-avatar {
    position: relative;
    margin-bottom: 16px;
}

.avatar-circle {
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2a2a2a;
    color: #93a2b7;
    font-size: 24px;
    border: 4px solid;
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

.podium-item.first .avatar-circle {
    width: 112px;
    height: 112px;
    border-color: #ffd700;
}

.podium-item.second .avatar-circle {
    width: 80px;
    height: 80px;
    border-color: #93a2b7;
}

.podium-item.third .avatar-circle {
    width: 80px;
    height: 80px;
    border-color: #ff8c00;
}

.avatar-placeholder {
    font-size: 32px;
}

.position-badge {
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
}

.first-badge {
    background: #ffd700;
    width: 40px;
    height: 40px;
    font-size: 16px;
    color: #000000;
}

.second-badge {
    background: #93a2b7;
}

.third-badge {
    background: #ff8c00;
}

.athlete-name {
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    margin: 0 0 4px 0;
}

.podium-item.first .athlete-name {
    font-size: 16px;
    font-weight: 700;
}

.athlete-points {
    font-size: 12px;
    color: #93a2b7;
    margin: 0;
}

.podium-item.first .athlete-points {
    font-size: 14px;
}

/* Call to Action */
.cta-container {
    background: rgba(26, 35, 50, 0.3);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin-top: 32px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.cta-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px 0;
}

.cta-description {
    font-size: 14px;
    color: #93a2b7;
    margin: 0 0 20px 0;
    line-height: 1.4;
}

.cta-button {
    width: 100%;
    height: 48px;
    background: #3b82f6;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-button:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.cta-button:active {
    transform: translateY(0);
}

/* Bottom Navigation Refinada */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a2332;
    backdrop-filter: blur(10px);
    border-top: 1px solid #2a2a2a;
    padding: 8px 0 12px 0;
    z-index: 1000;
}

.bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: end;
    gap: 4px;
    text-decoration: none;
    color: #93a2b7;
    transition: color 0.3s ease;
    padding: 8px;
    border-radius: 8px;
}

.nav-item.active {
    color: #0b95da;
}

.nav-item:hover {
    color: #ffffff;
}

.nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
}

.nav-label {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Página de Perfil */
.profile-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(26, 35, 50, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(59, 130, 246, 0.3);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-header .header-center {
    text-align: center;
}

.profile-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.profile-content {
    padding: 16px;
    padding-bottom: 120px; /* Espaço extra para rolagem confortável acima do menu */
    max-width: 600px;
    margin: 0 auto;
}

.profile-section {
    background: rgba(26, 35, 50, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.profile-avatar-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.avatar-container {
    position: relative;
}

.avatar-preview {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #0b95da;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 3px solid rgba(59, 130, 246, 0.3);
}

.avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-initial {
    color: #ffffff;
    font-size: 32px;
    font-weight: 700;
    text-transform: uppercase;
}

.avatar-upload-btn {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: #3b82f6;
    color: #ffffff;
    border: none;
    border-radius: 16px;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 3px;
    transition: all 0.3s ease;
}

.avatar-upload-btn:hover {
    background: #2563eb;
    transform: scale(1.05);
}

.profile-info h2 {
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 4px 0;
}

.profile-info p {
    color: #93a2b7;
    font-size: 14px;
    margin: 0;
}

.section-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    height: 100%;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    padding: 0;
    gap: 0;
    min-height: 40px;
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.profile-form .form-group {
    margin-bottom: 0;
}

.profile-form input:disabled {
    background: #1a2332;
    color: #93a2b7;
    cursor: not-allowed;
}

.group-item {
    background: rgba(13, 27, 42, 0.5);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid rgba(59, 130, 246, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.group-info h4 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.group-info p {
    color: #93a2b7;
    font-size: 14px;
    margin: 0 0 8px 0;
}

.group-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.group-meta span {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.group-actions {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: flex-end;
}

.upload-area {
    border: 2px dashed rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area:hover,
.upload-area.drag-over {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.05);
}

.upload-icon {
    color: #93a2b7;
    margin-bottom: 16px;
}

.upload-text {
    color: #93a2b7;
    font-size: 14px;
    margin: 0;
}

.upload-preview {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.upload-preview img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 8px;
    margin-bottom: 16px;
    object-fit: cover;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.upload-preview .btn-primary {
    margin: 0 auto;
}

.back-btn {
    background: none;
    border: none;
    color: #93a2b7;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.back-btn:hover {
    color: #ffffff;
    background: rgba(59, 130, 246, 0.1);
}

.edit-btn {
    background: none;
    border: none;
    color: #3b82f6;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.edit-btn:hover {
    background: rgba(59, 130, 246, 0.1);
}

/* Responsividade */
@media (min-width: 768px) {
    .features-placeholder {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .auth-container {
        max-width: 500px;
    }
    
    .action-buttons {
        flex-wrap: nowrap;
    }
    
    .group-actions {
        flex-wrap: nowrap;
    }
    
    .podium-container {
        gap: 24px;
    }
    
    .podium-item.first {
        margin: 0 16px;
    }
    
    .profile-avatar-section {
        gap: 30px;
    }
    
    .avatar-preview {
        width: 100px;
        height: 100px;
    }
    
    .avatar-initial {
        font-size: 40px;
    }
}

@media (max-width: 480px) {
    .podium-container {
        gap: 12px;
    }
    
    .podium-item.first .avatar-circle {
        width: 100px;
        height: 100px;
    }
    
    .podium-item.second .avatar-circle,
    .podium-item.third .avatar-circle {
        width: 70px;
        height: 70px;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .form-actions .btn-primary,
    .form-actions .btn-secondary {
        width: 100%;
        max-width: none;
        min-width: auto;
    }
    
    .modal-content {
        margin: 10px;
        max-width: calc(100% - 20px);
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-form {
        padding: 15px;
    }
}

/* Modal de edição de dados específico */
#editDataModal {
    padding: 0 !important;
    margin: 0 !important;
    z-index: 1001;
}

#editDataModal .modal-content {
    padding: 0 !important;
    height: 100vh !important;
    width: 100vw !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    margin: 0 !important;
    border-radius: 0 !important;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

/* Modal de criação de grupo específico */
#createGroupModal {
    padding: 0 !important;
    margin: 0 !important;
}

#createGroupModal .modal-content {
    padding: 0 !important;
    height: 100vh !important;
    width: 100vw !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    margin: 0 !important;
    border-radius: 0 !important;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

#editDataModal .profile-form {
    padding: 25px;
    flex: 1;
    overflow-y: auto;
}

#createGroupModal .modal-form {
    padding: 25px;
    flex: 1;
    overflow-y: auto;
}

#createGroupModal input[type="number"] {
    width: 100%;
    padding: 12px 16px;
    background: #2d3748;
    border: 1px solid #4a5568;
    border-radius: 8px;
    color: #ffffff;
    font-size: 16px;
    transition: all 0.3s ease;
}

#createGroupModal input[type="number"]:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

#createGroupModal input[type="number"]::placeholder {
    color: #93a2b7;
}

/* Container do código do grupo */
.code-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.code-input {
    flex: 1;
    padding: 12px 16px;
    background: #2d3748;
    border: 1px solid #4a5568;
    border-radius: 8px;
    color: #ffffff;
    font-size: 16px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    letter-spacing: 2px;
}

.code-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.btn-copy {
    padding: 12px 16px;
    background: #3b82f6;
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-copy:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.btn-copy svg {
    width: 16px;
    height: 16px;
}

#editDataModal .form-group {
    margin-bottom: 20px;
}

#editDataModal .form-actions {
    margin-top: 30px;
    margin-bottom: 150px;
    padding: 20px 25px;
    border-top: 1px solid rgba(59, 130, 246, 0.3);
    background: #1a2332;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

#createGroupModal {
    z-index: 1001;
}

#joinGroupModal {
    z-index: 1001;
}

#createGroupModal .form-actions {
    margin-top: 30px;
    padding: 20px 25px 80px 25px;
    border-top: 1px solid rgba(59, 130, 246, 0.3);
    background: #1a2332;
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Botões das seções do perfil */
.section-header .btn {
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 500;
    background: #374151;
    border: 1px solid #4b5563;
    color: #ffffff;
    border-radius: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: auto;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    max-width: fit-content;
    margin: 0;
    vertical-align: middle;
}

/* Botão "Criar Grupo" - mantém cor azul mas com estilo compacto */
.section-header .btn-primary {
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 500;
    background: #3b82f6;
    border: 1px solid #2563eb;
    color: #ffffff;
    border-radius: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: auto;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    max-width: fit-content;
    margin: 0;
    vertical-align: middle;
}

.section-header .btn:hover {
    background: #4b5563;
    border-color: #6b7280;
    transform: translateY(-1px);
}

.section-header .btn-primary:hover {
    background: #2563eb;
    border-color: #1d4ed8;
    transform: translateY(-1px);
}

.section-header .btn svg {
    width: 14px;
    height: 14px;
    margin-right: 6px;
    flex-shrink: 0;
}

/* Responsividade para mobile */
@media (max-width: 768px) {
    .section-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .section-header .btn {
        padding: 6px 8px;
        font-size: 11px;
        height: 28px;
        max-width: fit-content;
        margin: 0;
        vertical-align: middle;
    }
    
    .section-header .btn-primary {
        padding: 6px 8px;
        font-size: 11px;
        height: 28px;
        max-width: fit-content;
        margin: 0;
        vertical-align: middle;
    }
    
    .section-header .btn svg {
        width: 12px;
        height: 12px;
        margin-right: 4px;
    }
    
    .profile-section {
        padding: 16px;
        margin-bottom: 12px;
    }
    
    /* Modal em tela cheia no mobile */
    .modal-content {
        height: 100vh;
        border-radius: 0;
    }
    
    #editDataModal .profile-form {
        padding: 20px;
    }
    
    #editDataModal .form-actions {
        padding: 15px 20px;
        flex-direction: column;
        gap: 10px;
    }
    
    #editDataModal .form-actions .btn {
        width: 100%;
    }
    
    #createGroupModal .form-actions .btn {
        width: 100%;
    }
    
    /* Botão de fechar responsivo */
    .close-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    /* Forçar modal em tela cheia no mobile */
    #editDataModal {
        padding: 0 !important;
        margin: 0 !important;
    }
    
    #editDataModal .modal-content {
        width: 100vw !important;
        height: 100vh !important;
        max-width: 100vw !important;
        max-height: 100vh !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    #createGroupModal {
        padding: 0 !important;
        margin: 0 !important;
    }
    
    #createGroupModal .modal-content {
        width: 100vw !important;
        height: 100vh !important;
        max-width: 100vw !important;
        max-height: 100vh !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    #createGroupModal .modal-form {
        padding: 20px 20px 40px 20px;
    }
    
    #createGroupModal .form-actions {
        padding: 15px 20px 100px 20px;
        justify-content: center;
    }
    
    /* Responsividade para o container do código */
    .code-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-copy {
        width: 100%;
        justify-content: center;
    }
}

/* Seção do código do grupo - Estilos adicionais */
.code-container {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 10px;
}

.code-input {
    flex: 1;
    padding: 12px 16px;
    background: #1f2937;
    border: 2px solid #3b82f6;
    border-radius: 10px;
    color: #ffffff;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.btn-copy {
    padding: 12px 20px;
    background: #3b82f6;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    min-width: 120px;
    justify-content: center;
}

.btn-copy:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-copy svg {
    width: 16px;
    height: 16px;
}

/* Modal de Edição de Grupo - CORRIGIDO */
#editGroupModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1001;
    align-items: center;
    justify-content: center;
}

#editGroupModal.hidden {
    display: none !important;
}

#editGroupModal:not(.hidden) {
    display: flex !important;
}

/* Botão de Logout */
.btn-logout {
    background: #dc2626;
    color: #ffffff;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    transition: all 0.2s ease;
}


.btn-logout:hover {
    background: #b91c1c;
    transform: translateY(-1px);
}

.btn-logout svg {
    width: 14px;
    height: 14px;
}

/* Menu de Grupos - Tela Cheia */
.groups-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #0d1b2a;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100vh;
}

/* Classes específicas para o menu de grupos (ranking) */
.menu-group-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    margin-bottom: 6px;
    background: #1a2332;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #2a3441;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
    min-height: 60px;
    max-height: 60px;
}

.menu-group-item:hover {
    background: #2a3441;
    border-color: #3b82f6;
}

.menu-group-item:last-child {
    margin-bottom: 0;
}

.menu-group-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    min-height: 36px;
    padding-right: 8px;
}

.menu-group-info h4 {
    color: #ffffff;
    margin: 0 0 2px 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    text-align: left;
}

.menu-group-info p {
    color: #93a2b7;
    margin: 0 0 3px 0;
    font-size: 12px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
}

.menu-group-stats {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #93a2b7;
    line-height: 1.2;
    text-align: left;
}

.menu-group-stats span {
    display: flex;
    align-items: center;
}

.menu-group-arrow {
    color: #93a2b7;
    transition: all 0.2s ease;
    margin-left: 6px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-group-item:hover .menu-group-arrow {
    color: #ffffff;
    transform: translateX(2px);
}

.groups-menu.hidden {
    display: none;
}

.groups-menu-header {
    background: #1a2332;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid #2a3441;
    position: sticky;
    top: 0;
    z-index: 1001;
}

.groups-menu-header h3 {
    color: #ffffff;
    margin: 8px 0 8px 0;
    font-size: 16px;
    font-weight: 600;
}

.close-groups-menu {
    background: #2a3441;
    border: none;
    color: #ffffff;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: bold;
    margin: 8px 0 8px 0;
}

.close-groups-menu:hover {
    background: #3b82f6;
    transform: scale(1.05);
}

.groups-list {
    flex: 1;
    padding: 8px;
    overflow-y: auto;
    background: #0d1b2a;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

/* Classes antigas removidas - agora usamos .menu-group-item para o menu de ranking */

.no-groups {
    text-align: center;
    padding: 30px 16px;
    color: #93a2b7;
}

.no-groups p {
    margin: 0 0 16px 0;
    font-size: 14px;
}

.no-groups .btn-primary {
    background: #3b82f6;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.no-groups .btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

/* Responsividade do Menu de Grupos */
@media (max-width: 768px) {
    .groups-menu-header {
        padding: 18px 20px;
    }
    
    .groups-menu-header h3 {
        font-size: 14px;
        margin: 6px 0 6px 0;
    }
    
    .close-groups-menu {
        width: 28px;
        height: 28px;
        font-size: 12px;
        margin: 6px 0 6px 0;
    }
    
    .groups-list {
        padding: 11px;
    }
    
    .menu-group-item {
        padding: 10px 12px;
        margin-bottom: 4px;
        min-height: 70px;
        max-height: 70px;
    }
    
    .menu-group-info h4 {
        font-size: 13px;
    }
    
    .menu-group-info p {
        font-size: 11px;
    }
    
    .menu-group-stats {
        font-size: 10px;
    }
}

/* ===== FEED DE POSTS ===== */

/* Container do Feed de Posts */
.posts-feed {
    background: transparent;
    margin: 10px 0;
    border: none;
    overflow: visible;
}

.posts-header {
    padding: 8px 0;
    background: transparent;
    border: none;
    text-align: center;
}

.posts-title {
    color: #ffffff;
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

.active-group-name {
    color: #93a2b7;
    font-size: 12px;
    font-weight: 400;
    text-align: center;
    margin: 0;
}

/* Botão Flutuante de Novo Post */
.fab-new-post {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #3b82f6;
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
}

.fab-new-post:hover {
    background: #2563eb;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.6);
}

.fab-new-post svg {
    width: 24px;
    height: 24px;
}

/* Lista de Posts */
.posts-list {
    padding: 16px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.post-item {
    background: #1a2332;
    padding: 3px 24px;
    margin-bottom: 8px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.2s ease;
    min-height: 60px;
    justify-content: space-between;
}

/* .post-avatar {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
} */

/* .post-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    background: #2a3441;
    border: 2px solid #3b82f6;
    overflow: hidden;
    border-radius: 50%;
} */

.post-info {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
}

.post-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
    align-items: flex-start;
}

.post-author-name {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    line-height: 1.1;
}

.post-activity {
    color: #93a2b7;
    font-size: 15px;
    margin: 0;
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 4px;
}

.post-activity::after {
    content: "";
}

/* CSS removido - aplicado via JavaScript inline */

/* CSS removido - aplicado via JavaScript inline */

/* CSS removido - aplicado via JavaScript inline */

.post-time {
    color: #93a2b7;
    font-size: 13px;
    margin: 0;
    line-height: 1.1;
}

.post-action {
    flex-shrink: 0;
}

.btn-view-workout {
    background: #3b82f6;
    color: #ffffff;
    border: none;
    padding: 11px 4px;
    border-radius: 8px;
    font-size: 9px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    min-width: 61px;
}

.btn-view-workout:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.post-item:hover {
    background: #1e2a3a;
}

.post-item:last-child {
    border-bottom: none;
}

/* Header do Post - COMENTADO PARA EVITAR CONFLITO COM INSTAGRAM-POSTS.CSS */
/*
.post-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}
*/

.post-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* .post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
} */

.avatar-fallback {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #3b82f6;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
}

.author-info h4 {
    color: #ffffff;
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 600;
}

.author-info p {
    color: #93a2b7;
    margin: 0;
    font-size: 12px;
}

.post-status {
    display: flex;
    align-items: center;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
}

.status-badge.pending {
    background: #fbbf24;
    color: #92400e;
}

.status-badge.validated {
    background: #10b981;
    color: #064e3b;
}

.status-badge.contested {
    background: #ef4444;
    color: #7f1d1d;
}

.status-badge.expired {
    background: #6b7280;
    color: #ffffff;
}

/* Conteúdo do Post */
.post-content {
    margin-bottom: 12px;
}

.post-content h3 {
    color: #ffffff;
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
}

.post-content p {
    color: #93a2b7;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

/* Preview das Imagens */
.post-images-preview {
    display: none;
}

.post-image-thumb {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.more-images {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    background: #2a3441;
    color: #93a2b7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 500;
    flex-shrink: 0;
}

/* Ações do Post */
.post-actions-preview {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

.btn-view-workout {
    background: #3b82f6;
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-view-workout:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

/* Mensagem quando não há posts */
.no-posts {
    text-align: center;
    padding: 40px 24px;
    color: #93a2b7;
}

.no-posts p {
    margin: 0 0 8px 0;
    font-size: 14px;
}

.no-posts p:last-child {
    font-size: 12px;
    opacity: 0.8;
}

/* ===== MODAL DE CRIAÇÃO DE POST ===== */

/* Área de Upload de Imagens */
.image-upload-area {
    margin-bottom: 20px;
}

.upload-placeholder {
    border: 2px dashed #2a3441;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #1a2332;
}

.upload-placeholder:hover {
    border-color: #3b82f6;
    background: #1e2a3a;
}

.upload-placeholder svg {
    color: #93a2b7;
    margin-bottom: 12px;
}

.upload-placeholder p {
    color: #ffffff;
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 500;
}

.upload-placeholder small {
    color: #93a2b7;
    font-size: 12px;
}

/* Imagens Selecionadas */
.selected-images {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.image-preview {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-image {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ef4444;
    color: #ffffff;
    border: none;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.remove-image:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.add-more {
    width: 100px;
    height: 100px;
    border: 2px dashed #2a3441;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #1a2332;
}

.add-more:hover {
    border-color: #3b82f6;
    background: #1e2a3a;
}

.add-more svg {
    color: #93a2b7;
    width: 24px;
    height: 24px;
}

/* ===== MODAL DE DETALHES DO POST ===== */



.post-images {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.post-detail-image {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.post-info {
    margin-bottom: 0;
}

.post-info h3 {
    color: #ffffff;
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
}

.post-info p {
    color: #93a2b7;
    margin: 0 0 4px 0;
    font-size: 14px;
}

.post-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn-contest,
.btn-validate {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-contest {
    background: #ef4444;
    color: #ffffff;
}

.btn-contest:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.btn-contest.active {
    background: #dc2626;
    cursor: not-allowed;
}

/* COMENTADO PARA EVITAR CONFLITO COM INSTAGRAM-POSTS.CSS */
/*
.btn-validate {
    background: #10b981;
    color: #ffffff;
}

.btn-validate:hover {
    background: #059669;
    transform: translateY(-1px);
}

.btn-validate.active {
    background: #059669;
    cursor: not-allowed;
}
*/

/* Botão de exclusão flutuante */
.btn-delete-floating {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    background: #f59e0b;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    z-index: 10;
}

.btn-delete-floating:hover {
    background: #d97706;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
}

.btn-contest svg,
.btn-validate svg,
.btn-delete-floating svg {
    width: 16px;
    height: 16px;
}

/* Garantir que o modal tenha position relative para o botão absoluto */
.post-details-content {
    position: relative;
    padding: 24px;
}

/* Responsividade para Posts */
@media (max-width: 768px) {
    .posts-header {
        padding: 6px 0;
    }
    
    .posts-title {
        font-size: 13px;
        text-align: center;
    }
    
    .active-group-name {
        font-size: 11px;
    }
    
    .ranking-title {
        font-size: 16px;
    }
    
    .post-item {
        padding: 20px 24px;
        gap: 16px;
        margin-bottom: 6px;
        min-height: 70px;
        justify-content: space-between;
    }
    
    .post-item .post-info {
        display: flex !important;
        align-items: center !important;
        flex: 1 !important;
    }
    
    /* .post-item .post-avatar {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    } */
    
    .posts-list {
        padding: 12px 0;
        gap: 6px;
    }
    
    /* .post-avatar {
        width: 80px;
        height: 80px;
    } */
    
    .post-avatar img {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        object-fit: cover;
        object-position: center;
        overflow: hidden;
    }
    
    .post-details {
        gap: 6px;
    }
    
    .post-author-name {
        font-size: 13px;
        max-width: 100px;
    }
    
    .post-activity {
        font-size: 12px;
        max-width: 100px;
    }
    
    .post-time {
        font-size: 10px;
    }
    
    .btn-view-workout {
        padding: 8px 3px;
        font-size: 8px;
        min-width: 55px;
    }
    
    .fab-new-post {
        bottom: 80px;
        right: 16px;
        width: 48px;
        height: 48px;
    }
    
    .fab-new-post svg {
        width: 20px;
        height: 20px;
    }
    
    .post-item {
        padding: 16px 20px;
    }
    
    /* COMENTADO PARA EVITAR CONFLITO COM INSTAGRAM-POSTS.CSS */
    /*
    .post-header {
        flex-direction: column;
        gap: 12px;
    }
    */
    
    .post-author {
        gap: 10px;
    }
    
    /* .post-avatar {
        width: 36px;
        height: 36px;
    } */
    
    .avatar-fallback {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .author-info h4 {
        font-size: 13px;
    }
    
    .author-info p {
        font-size: 11px;
    }
    
    .post-content h3 {
        font-size: 15px;
    }
    
    .post-content p {
        font-size: 13px;
    }
    
    .post-image-thumb {
        width: 70px;
        height: 70px;
    }
    
    .more-images {
        width: 70px;
        height: 70px;
        font-size: 11px;
    }
    
    .btn-view-workout {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .post-details-content {
        padding: 20px;
    }
    
    .post-detail-image {
        width: 100px;
        height: 100px;
    }
    
    .post-actions {
        flex-direction: column;
    }
    
    .btn-contest,
    .btn-validate {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    /* Ajustar botão flutuante em mobile */
    .btn-delete-floating {
        bottom: 15px;
        right: 15px;
        padding: 10px 14px;
        font-size: 13px;
    }
}

/* Correção para avatars dos posts - garantir proporção quadrada */
/* @media (max-width: 768px) {
    .post-avatar {
        width: 80px;
        height: 80px !important;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        overflow: hidden;
    }
    
    .post-avatar img {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        object-fit: cover;
        object-position: center;
        display: block;
    }
} */

/* CSS para imagens maiores no modal de detalhes */
.post-detail-image-large {
    width: 100%;
    max-width: 125px;
    height: auto;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s ease;
    margin-bottom: 16px;
}

/* Estilo para mensagem de nenhuma imagem */
.no-images {
    text-align: center;
    color: #93a2b7;
    font-style: italic;
    padding: 20px;
    background: #1a2332;
    border-radius: 8px;
    margin: 10px 0;
}

/* Ajustar modal para não sobrepor botões fixos */
.modal-content {
    padding-bottom: 80px;
}

/* Layout vertical para informações do post */
.post-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 0px;
    text-align: left;
    align-items: flex-start;
}

.post-info h3 {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    line-height: 1.4;
    text-align: left;
}

.post-info p {
    font-size: 14px;
    color: #93a2b7;
    margin: 0;
    line-height: 1.3;
    text-align: left;
}

#postDetailsAuthor {
    font-weight: 500;
    color: #ffffff;
    text-align: left;
    margin: 0;
}

.post-field {
    margin-bottom: 8px;
}

.field-label {
    font-size: 12px;
    color: #93a2b7;
    font-weight: 600;
    display: block;
    margin-bottom: 2px;
}

#postDetailsDate {
    font-size: 12px;
    color: #93a2b7;
    text-align: left;
    margin: 0;
    line-height: 1.4;
}

#postDetailsTitle,
#postDetailsDescription {
    font-size: 16px;
    color: #ffffff;
    text-align: left;
    margin: 0;
    line-height: 1.4;
    display: block;
}

#postDetailsDescription {
    word-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    overflow-wrap: break-word;
    hyphens: auto;
}

.post-detail-image-large:hover {
    transform: scale(1.02);
}

/* Modal de expansão de imagem */
.image-expand-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    cursor: pointer;
}

.image-expand-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    cursor: default;
}

.close-image-btn {
    position: absolute;
    top: -40px;
    right: 0;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.close-image-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.expanded-image {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
}

/* Botões fixos no fundo do modal de detalhes - LADO A LADO */
.post-actions {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: row;
    gap: 0;
    padding: 16px;
    background: #1a2332;
    border-top: 1px solid #2a3441;
    z-index: 1000;
}

.btn-contest, .btn-validate, .btn-delete {
    flex: 1;
    padding: 16px 20px;
    border-radius: 0;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    color: white;
    font-size: 16px;
}

.btn-contest {
    background: #0e3447;
    border-radius: 8px 0 0 8px;
}

.btn-contest:hover {
    background: #0a2a3a;
}

.btn-validate {
    background: #0b95da;
    border-radius: 0 8px 8px 0;
}

.btn-validate:hover {
    background: #0a7bc7;
}

.btn-delete {
    background: #f59e0b;
    border-radius: 8px;
}

.btn-delete:hover {
    background: #d97706;
}

.btn-contest.active, .btn-validate.active {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Item do botão de entrar em grupo */
.join-group-item {
    padding: 16px 20px;
    background: #1a2332;
    margin: 8px 16px;
    border-radius: 8px;
    border: 1px solid #2a3441;
}

.btn-join-group {
    width: 100% !important;
    background: transparent !important;
    color: #3b82f6 !important;
    border: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    text-align: left !important;
}

.btn-join-group:hover {
    background: transparent !important;
    color: #60a5fa !important;
    transform: none !important;
    box-shadow: none !important;
}

.btn-join-group svg {
    width: 20px;
    height: 20px;
}

/* Responsividade para o item de entrar em grupo */
@media (max-width: 768px) {
    .join-group-item {
        padding: 12px 16px;
        margin: 6px 12px;
    }
    
    .btn-join-group {
        font-size: 13px !important;
    }
}

/* Mensagem quando não há grupos */
.no-posts-message {
    text-align: center;
    padding: 40px 20px;
    background: #1a2332;
    border-radius: 12px;
    margin: 20px;
    border: 1px solid #2d3748;
}

.no-posts-message p {
    color: #93a2b7;
    font-size: 16px;
    margin-bottom: 10px;
    line-height: 1.5;
}

.no-posts-message p:last-child {
    margin-bottom: 0;
    font-weight: 500;
    color: #ffffff;
}

/* Instruções específicas para iOS */
.ios-steps {
    margin: 16px 0;
}

.ios-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    padding: 12px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 8px;
    border-left: 3px solid #3b82f6;
}

.step-number {
    background: #3b82f6;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 12px;
    margin-right: 12px;
    flex-shrink: 0;
}

.step-text {
    color: #ffffff;
    line-height: 1.4;
    font-size: 14px;
}

.step-text strong {
    color: #3b82f6;
}


/* Correção para quebra de linha do texto no modal de detalhes */
#postDetailsDescription {
    word-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Popup customizado para confirmação */
.custom-confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.custom-confirm-overlay.show {
    opacity: 1;
    visibility: visible;
}

.custom-confirm-dialog {
    background: #1a2332;
    border-radius: 12px;
    padding: 24px;
    max-width: 400px;
    width: 90%;
    margin: 20px;
    border: 1px solid #2a3441;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.custom-confirm-overlay.show .custom-confirm-dialog {
    transform: scale(1);
}

.custom-confirm-title {
    color: #e2e8f0;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    text-align: center;
}

.custom-confirm-message {
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 24px;
    text-align: center;
}

.custom-confirm-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.custom-confirm-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 80px;
}

.custom-confirm-btn.cancel {
    background: #374151;
    color: #e2e8f0;
}

.custom-confirm-btn.cancel:hover {
    background: #4b5563;
}

.custom-confirm-btn.confirm {
    background: #ef4444;
    color: white;
}

.custom-confirm-btn.confirm:hover {
    background: #dc2626;
}

/* Estilos para botões de ação dos grupos */
.group-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-icon {
    background: #374151;
    border: none;
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.btn-icon:hover {
    background: #4b5563;
    transform: translateY(-1px);
}

.btn-icon.btn-danger {
    background: #dc2626;
}

.btn-icon.btn-danger:hover {
    background: #b91c1c;
}

.btn-icon i {
    font-size: 14px;
    color: #ffffff;
}

/* Responsividade */
@media (max-width: 480px) {
    .custom-confirm-dialog {
        padding: 20px;
        margin: 16px;
    }
    
    .custom-confirm-buttons {
        flex-direction: column;
    }
    
    .custom-confirm-btn {
        width: 100%;
    }
}

/* Estilos específicos para botões de ação dos grupos no perfil */
.group-actions .btn-copy,
.group-actions .btn-edit,
.group-actions .btn-delete {
    padding: 8px !important;
    width: 36px !important;
    height: 36px !important;
    min-width: auto !important;
    background: #374151 !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
}

.group-actions .btn-copy:hover,
.group-actions .btn-edit:hover {
    background: #4b5563 !important;
    transform: translateY(-1px) !important;
}

.group-actions .btn-delete {
    background: #dc2626 !important;
}

.group-actions .btn-delete:hover {
    background: #b91c1c !important;
    transform: translateY(-1px) !important;
}

.group-actions .btn-copy svg,
.group-actions .btn-edit svg,
.group-actions .btn-delete svg {
    width: 16px !important;
    height: 16px !important;
    fill: #ffffff !important;
    color: #ffffff !important;
}

/* Destaque discreto para posts do usuário logado */
.post-item.own-post {
    border: 1px solid rgba(59, 130, 246, 0.3) !important;
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.1) !important;
}

.post-item.own-post:hover {
    border: 1px solid rgba(59, 130, 246, 0.4) !important;
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.15) !important;
}

/* Estilos para o menu de 3 pontos dos posts */
.post-menu-btn {
    transition: all 0.2s ease !important;
    border: none !important;
    background: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.post-menu-btn:hover {
    background: none !important;
    color: #ffffff !important;
    transform: none !important;
    border: none !important;
    box-shadow: none !important;
}

.post-menu-btn:active {
    transform: none !important;
    background: none !important;
    box-shadow: none !important;
}

.post-menu-btn:focus {
    outline: none !important;
    box-shadow: none !important;
    background: none !important;
}

.post-menu-dropdown {
    animation: fadeInDown 0.2s ease !important;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-option {
    transition: background 0.2s ease !important;
}

.menu-option:hover {
    background: rgba(59, 130, 246, 0.1) !important;
}

.menu-option:active {
    background: rgba(59, 130, 246, 0.2) !important;
}