/* Top Navigation Menu - Fixed at Bottom */
.top-nav-menu {
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: 12px 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999999;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
}

.top-nav-menu .nav-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

.top-nav-menu .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    text-decoration: none;
    padding: 4px 8px;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 0;
}

.top-nav-menu .nav-item .iconify {
    margin-bottom: 4px;
    color: inherit;
}

.top-nav-menu .nav-item .iconify.h-7 {
    height: 28px;
}

.top-nav-menu .nav-item .iconify.w-7 {
    width: 28px;
}

.top-nav-menu .nav-item .nav-label {
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    color: inherit;
}

.top-nav-menu .nav-item:hover {
    color: #6b7280;
}

.top-nav-menu .nav-item.active {
    color: #ef4444;
}

.top-nav-menu .nav-item.active .iconify {
    color: #ef4444;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .top-nav-menu .nav-item .nav-label {
        font-size: 11px;
    }
    
    .top-nav-menu .nav-item .iconify.h-7 {
        height: 24px;
    }
    
    .top-nav-menu .nav-item .iconify.w-7 {
        width: 24px;
    }
    
    .top-nav-menu .nav-item {
        padding: 4px 6px;
    }
}

/* Tailwind-like utility classes for icon sizing */
.h-7 {
    height: 28px !important;
}

.w-7 {
    width: 28px !important;
}

/* Iconify icon styles */
.iconify.shrink-0 {
    flex-shrink: 0;
}

.iconify {
    display: inline-block;
    vertical-align: middle;
}

/* Add padding to body to prevent content from being hidden behind bottom nav */
body {
    padding-bottom: 80px !important;
}

/* Container adjustments */
.app-main {
    padding-bottom: 20px;
}

/* Header adjustments */
.header-app-header-container .container {
    position: relative;
}

.header-app-header .header-app-brand {
    max-height: 80px;
    width: auto;
    max-width: 250px;
}

.header-app-header .btn-link {
    text-decoration: none;
}

.header-app-header .btn-link:hover {
    opacity: 0.8;
}

/* Notifications Modal Styles */
#notificationsModal .modal-header {
    background: #fff;
    padding: 16px;
    border-bottom: 1px solid #e5e5e5;
}

#notificationsModal .modal-header .btn-link {
    padding: 0;
    text-decoration: none;
    color: #333;
}

#notificationsModal .modal-header h5 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: #333;
}

#notificationsModal .modal-body {
    background: #f5f5f5;
    padding: 0;
}

.notifications-list {
    background: #fff;
}

.notification-item {
    background: #fff;
    padding: 16px;
    border-bottom: 1px solid #e5e5e5;
    transition: background-color 0.2s ease;
}

.notification-item:hover {
    background: #fafafa;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-icon {
    flex-shrink: 0;
}

.notification-title {
    color: #333;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}

.notification-time {
    color: #999;
    font-size: 12px;
    white-space: nowrap;
    margin-left: 8px;
}

.notification-message {
    color: #999;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 8px;
}

.notification-action {
    color: #10b981;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.notification-action:hover {
    color: #059669;
    text-decoration: underline;
}

/* Bell icon with notification badge */
.btn-notifications {
    position: relative;
}

.btn-notifications .notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}


/* Padronização de cores dos títulos das seções */
.app-title h1,
.app-title .mb-0 {
    color: #4a5568 !important;
    font-weight: 600;
}

/* Cor dos links "Ver Mais" */
.text-white-50 {
    color: #9ca3af !important;
}

/* Mensagem quando não há campanhas */
.text-center p {
    color: #9ca3af;
}

/* Seção Ganhadores - Layout horizontal com scroll */
.app-ganhadores {
    margin-bottom: 20px;
}

.app-ganhadores .ganhadores-scroll {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 10px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}

.app-ganhadores .ganhadores-scroll::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

.app-ganhadores .ganhador-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 120px;
    text-align: center;
}

.app-ganhadores .ganhador-foto {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    position: relative;
}

.app-ganhadores .ganhador-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-ganhadores .ganhador-nome {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

.app-ganhadores .ganhador-info {
    font-size: 12px;
    color: #999;
    line-height: 1.4;
}

.app-ganhadores .ganhador-info p {
    margin: 0;
    color: #999;
}

/* Campanhas Encerradas - Imagem em tela cheia com overlay */
.campanha-encerrada {
    position: relative !important;
    overflow: hidden !important;
    border-radius: 10px !important;
}

.campanha-encerrada .SorteioTpl_imagemContainer__2-pl4 {
    width: 100% !important;
    height: 140px !important;
    margin-right: 0 !important;
    border-radius: 15px !important;
    position: relative !important;
    overflow: hidden !important;
}

.campanha-encerrada .SorteioTpl_imagemContainer__2-pl4 > div {
    border-radius: 15px !important;
}

.campanha-encerrada .SorteioTpl_imagem__2GXxI {
    object-fit: cover !important;
    width: 100% !important;
    height: 100% !important;
}

.campanha-encerrada .SorteioTpl_info__t1BZr {
    position: absolute !important;
    top: 50% !important;
    left: 16px !important;
    right: 16px !important;
    transform: translateY(-50%) !important;
    z-index: 3 !important;
    padding: 0 !important;
}

.campanha-encerrada .SorteioTpl_title__3RLtu {
    font-size: 18px !important;
    line-height: 1.3 !important;
    margin-bottom: 2px !important;
}

.campanha-encerrada .SorteioTpl_descricao__1b7iL {
    font-size: 13px !important;
    line-height: 1.2 !important;
}


/* Padronização de cores dos títulos das seções */
.app-title h1,
.app-title .mb-0 {
    color: #4a5568 !important;
    font-weight: 600;
}

/* Cor dos links "Ver Mais" */
.text-white-50 {
    color: #9ca3af !important;
}

/* Mensagem quando não há campanhas */
.text-center p {
    color: #9ca3af;
}
