:root {
    --primary-color: #882aff;
    --secondary-color: #ffd640;
    --text-color: #333;
    --light-text: #6c757d;
    --bg-color: #ffffff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

body {
    padding-top: 40px;
    padding-bottom: 80px; /* Espaço para o bottom nav */
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
}

/* Alertas */
.profile-alert {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background-color: #fff3cd;
    color: #856404;
    padding: 12px 20px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 999;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    justify-content: center;
    align-items: center;
    gap: 3px;
}

.profile-alert a {
    color: #856404;
    text-decoration: underline;
    font-weight: 600;
    margin-left: 0px;
}

.profile-alert a:hover {
    color: #6c5403;
}

.profile-alert i {
    color: #ffc107;
}

/* WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 100px; /* Ajustado para ficar acima do bottom nav */
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    z-index: 999; /* Abaixo do bottom nav */
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-float:active {
    transform: scale(0.95);
}

/* Navbar Desktop */
.navbar {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 120px !important;
    z-index: 1000;
}

.logo img {
    height: 30px;
    width: auto;
    transition: transform 0.3s ease;
    position: center;
}

.logo img:hover {
    transform: scale(1.05);
}

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

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 12px;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link.cta {
    background-color: var(--primary-color);
    color: white;
    border-radius: 30px;
    padding: 8px 20px;
    font-weight: 600;
}

.nav-link.cta:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

/* Foto do usuário no mobile */
.user-photo-mobile {
    display: none;
    order: 2;
}

.user-photo-link {
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-photo-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(136, 42, 255, 0.2);
}

/* Botões especiais */
.nav-link.cta {
    background-color: #e83e8c;
    color: white;
    padding: 8px 15px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    white-space: nowrap;
}

.nav-link.cta:hover {
    background-color: #e83e8c;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(232, 62, 140, 0.3);
}

.my-card-btn {
    background-color: #e83e8c;
    color: white;
    padding: 8px 15px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    white-space: nowrap;
}

.my-card-btn:hover {
    background-color: #e83e8c;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(232, 62, 140, 0.3);
}

.inactive-account-btn {
    background-color: #6c757d;
    color: white;
    padding: 8px 15px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.inactive-account-btn:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3);
}

.points-btn {
    background-color: #28A745;
    color: #fff;
    padding: 8px 15px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    white-space: nowrap;
}

.points-btn:hover {
    background-color: #28A745;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

/* User Menu */
.user-menu {
    position: relative;
}

.user-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.user-toggle:hover {
    background-color: #f8f9fa;
}

.user-photo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f1f1f1;
}

.user-name {
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
}

.dropdown-menu {
    position: absolute;
    top: 50px;
    right: 0;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 10px 0;
    width: 200px;
    z-index: 1002;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    --bs-dropdown-border-color: none;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    gap: 10px;
    font-size: 0.9rem;
}

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

.dropdown-menu i {
    width: 20px;
    text-align: center;
    color: var(--primary-color);
}

.dropdown-divider {
    height: 1px;
    background-color: #f0f0f0;
    margin: 8px 0;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
}

/* BOTTOM NAVIGATION BAR */
.bottom-nav-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 500px;
    z-index: 1000;
}

.bottom-nav {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 25px;
    padding: 12px 20px;
    border-radius: 55px !important;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: var(--glass-shadow);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #1b1b1b;
    transition: all 0.3s ease;
    flex: 1;
    padding: 5px 0;
    border-radius: 12px;
    position: relative;
}

.bottom-nav-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.bottom-nav-label {
    font-size: 0.7rem;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.bottom-nav-item.active {
    color: var(--primary-color);
    transform: translateY(-5px);
}

.bottom-nav-item.active .bottom-nav-icon {
    background: linear-gradient(135deg, var(--primary-color), #a85cff);
    border-radius: 10px;
    padding: 6px;
    color: white;
    box-shadow: 0 4px 12px rgba(136, 42, 255, 0.3);
}

.bottom-nav-item:hover:not(.active) {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.bottom-nav-item:hover:not(.active) .bottom-nav-icon {
    transform: scale(1.1);
}

/* Active indicator */
.bottom-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    width: 5px;
    height: 5px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

/* Mobile Styles */
@media (max-width: 768px) {
    body {
        padding-top: 0px;
        padding-bottom: 90px;
    }
    
    .navbar {
        padding: 10px 15px !important;
        position: fixed !important;
        top: 0;
        height: 60px;
    }
    
    .logo img {
        height: 20px !important;
    }
    
    .user-photo-mobile {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 15px;
    }
    
    .mobile-menu-btn {
        display: block;
        order: 3;
    }
    
    .logo {
        order: 1;
        flex-grow: 1;
    }
    
    .nav-links {
        position: fixed;
        top: 60px;
        right: -100%;
        left: 100%;
        height: calc(100vh - 60px);
        background-color: var(--bg-color);
        flex-direction: column;
        align-items: flex-end;
        padding: 20px;
        gap: 15px;
        transition: all 0.3s ease;
        z-index: 999;
        overflow-y: auto;
        margin-left: 40%;
    }
    
    .nav-links.active {
        left: 0;
        right: 0;
    }
    
    .user-menu-wrapper {
        flex-direction: column;
        width: 100%;
        padding: 0;
        gap: 15px;
    }
    
    .my-card-btn, .inactive-account-btn, .points-btn {
        width: 100%;
        justify-content: center;
        padding: 10px;
        order: 1;
    }
    
    .user-menu {
        width: 100%;
        order: 2;
    }
    
    .user-toggle {
        width: 100%;
        display: block;
        justify-content: space-between;
        padding: 10px;
        background-color: #f8f9fa;
        border-radius: 8px;
        transition: all 0.3s ease;
        background-color: #f0f0f0;
    }
    
    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        background-color: #f8f9fa;
        margin-top: 5px;
        border-radius: 8px;
        border: none !important;
        display: block !important;
    }

    .user-toggle .user-arrow {
        display: none !important;
    }
    
    .dropdown-menu.show {
        display: block;
        border-radius: 8px;
        transform: translateY(0);
    }
    
    .nav-link {
        width: 100%;
        padding: 12px 15px;
        border-radius: 8px;
    }
    
    .nav-link:hover {
        background-color: #f8f9fa;
    }
    
    .nav-link.cta {
        order: -1;
        margin-top: 10px;
    }
    
    .bottom-nav-icon {
        width: 34px;
        height: 34px;
        font-size: 1.5rem;
    }
    
    /* Ajuste do WhatsApp para mobile */
    .whatsapp-float {
        bottom: 100px;
        right: 15px;
        width: 50px;
        height: 50px;
        font-size: 20px;
        z-index: 999; /* Abaixo do bottom nav */
    }
    
    /* Bottom Nav para mobile */
    .bottom-nav-container {
        bottom: 15px;
        width: 94%;
    }
    
    .bottom-nav {
        padding: 10px 15px;
        border-radius: 55px !important;
    }
    
    .bottom-nav-icon {
        width: 34px;
        height: 34px;
        font-size: 1.5rem;
    }
    
    .bottom-nav-label {
        font-size: 0.75rem;
    }
    
    .bottom-nav-item.active {
        transform: translateY(-3px);
    }
    
    .bottom-nav-item.active::after {
        bottom: -6px;
        width: 4px;
        height: 4px;
    }
}

/* Para telas muito pequenas */
@media (max-width: 380px) {
    .bottom-nav-label {
        font-size: 0.6rem;
    }
    
    .bottom-nav-icon {
        width: 34px;
        height: 34px;
        font-size: 1.5rem;
    }
    
    .bottom-nav {
        padding: 8px 12px;
        border-radius: 55px !important;
    }
}

/* Para WebView (app) - remove alguns efeitos hover */
@media (hover: none) and (pointer: coarse) {
    .bottom-nav-item:hover:not(.active) {
        transform: none;
    }
    
    .bottom-nav-item:hover:not(.active) .bottom-nav-icon {
        transform: none;
    }
    
    .whatsapp-float:hover {
        transform: none;
    }
    
    .nav-link:hover,
    .my-card-btn:hover,
    .inactive-account-btn:hover,
    .points-btn:hover {
        transform: none;
    }
}