/* Estilos base do index.css mantidos, adicionando específicos para o painel do criador */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* HEADER MELHORADO */
header {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    flex-direction: column;
    padding: 10px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-bottom: 10px;
}

.header-bottom {
    width: 100%;
    display: flex;
    justify-content: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    overflow-x: auto;
    white-space: nowrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

.logo span {
    color: #ffcc00;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.logo-icon {
    font-size: 32px;
    color: #ffcc00;
}

.nav-buttons {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Esconder scrollbar mas manter funcionalidade */
.nav-buttons::-webkit-scrollbar {
    display: none;
}


.nav-btn {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.nav-btn.active {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.3);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffcc00 0%, #ff9900 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.file-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-top: 5px;
}

#foto-preview {
    text-align: center;
    margin-top: 10px;
}

#foto-preview-img {
    max-width: 100px;
    max-height: 100px;
    border-radius: 8px;
    border: 2px solid #eee;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-phone {
    font-weight: 500;
    font-size: 14px;
}

.user-status {
    font-size: 12px;
    opacity: 0.8;
    color: #ffcc00;
}

.logout-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
}

.sorteio-image img,
.premio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

/* Garantir que todos os botões sejam visíveis em desktop */
@media (min-width: 769px) {
    .nav-buttons {
        display: flex !important;
        position: static;
        flex-direction: row;
        background: none;
        padding: 0;
        box-shadow: none;
    }

    .mobile-menu-btn {
        display: none !important;
    }

    .user-details {
        display: flex !important;
    }
}


/* Melhorar responsividade para telas médias */
@media (max-width: 1024px) and (min-width: 769px) {
    .nav-btn span {
        font-size: 13px;
    }

    .nav-btn {
        padding: 10px 15px;
    }

    .logo h1 {
        font-size: 24px;
    }
}

/* Ajustes para mobile */
@media (max-width: 768px) {
    header {
        padding: 10px 15px;
    }

    .header-top {
        flex-direction: column;
        gap: 10px;
    }

    .header-left,
    .header-right {
        width: 100%;
        justify-content: space-between;
    }

    .logo h1 small {
        display: block;
        font-size: 14px;
        margin-top: 2px;
    }

    .nav-buttons {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
        padding: 15px;
        flex-direction: column;
        gap: 10px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        z-index: 1000;
        max-height: 70vh;
        overflow-y: auto;
    }

    .nav-buttons.show {
        display: flex !important;
    }

    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .stat-card {
        padding: 15px;
    }

    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .stat-info h3 {
        font-size: 20px;
    }
}

/* Resto do CSS permanece igual */
.main-content {
    padding: 30px;
}

.page-title {
    color: #333;
    margin-bottom: 30px;
    font-size: 28px;
    border-bottom: 2px solid #6a11cb;
    padding-bottom: 10px;
}

.sorteios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.sorteio-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eaeaea;
}

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

.sorteio-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 48px;
}

.sorteio-content {
    padding: 20px;
}

.sorteio-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.3;
}

.sorteio-desc {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sorteio-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 15px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-label {
    font-size: 12px;
    color: #888;
    font-weight: 500;
}

.info-value {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    margin-top: 10px;
}

.status-aberto {
    background: #d4edda;
    color: #155724;
}

.status-pausado {
    background: #e2e3e5;
    color: #383d41;
}

.status-programado {
    background: #cce5ff;
    color: #004085;
}

.status-encerrado {
    background: #f8d7da;
    color: #721c24;
}

.sorteio-footer {
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #eaeaea;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-ver-sorteio {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: opacity 0.3s;
}

.btn-ver-sorteio:hover {
    opacity: 0.9;
}

.numeros-disponiveis {
    font-size: 13px;
    color: #666;
}

.loading {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.error-message {
    background: #ffebee;
    color: #c62828;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    margin: 20px 0;
    grid-column: 1 / -1;
}

.error-message i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #c62828;
}

.error-message h3 {
    margin: 0 0 10px 0;
    color: #c62828;
}

.error-message p {
    margin: 0 0 15px 0;
    line-height: 1.5;
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary:disabled:hover {
    opacity: 0.6;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #ccc;
}

.filter-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.filter-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.filter-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    background: white;
    border: 2px solid #ddd;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.filter-btn.active {
    background: #6a11cb;
    color: white;
    border-color: #6a11cb;
}

.filter-btn:hover {
    border-color: #6a11cb;
}

@media (max-width: 768px) {
    .sorteios-grid {
        grid-template-columns: 1fr;
    }

    .sorteio-info {
        grid-template-columns: 1fr;
    }

    .filter-options {
        flex-direction: column;
    }

    .main-content {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .participante-item {
        padding: 12px;
    }

    .participante-avatar {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .btn-action {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}

/* Estilos para o popup */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.popup-header {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.popup-header h3 {
    margin: 0;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.popup-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.popup-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.popup-body {
    padding: 20px;
    max-height: calc(80vh - 80px);
    overflow-y: auto;
}

/* Estilos para a lista de números */
.numeros-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.numero-item {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s;
}

.numero-item.reservado {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.numero-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.sorteio-info-popup {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.sorteio-title-popup {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.sorteio-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    font-size: 14px;
}

.sorteio-detail {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 2px;
}

.detail-value {
    font-weight: 500;
    color: #333;
}

.empty-numeros {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.empty-numeros i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #dee2e6;
}

.sorteio-resultado {
    margin-bottom: 20px;
    transition: all 0.3s ease;

}

.sorteio-resultado:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.sorteio-resultado.vencedor {
    background: linear-gradient(135deg, #f8fff8 0%, #e8f5e8 100%);
    border-radius: 12px;
    padding: 15px;
    border-left: 4px solid #28a745;
}

.sorteio-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    margin: 10px 0;
    padding: 8px 12px;
    border-radius: 6px;
}

.status-vencedor {
    background: #d4edda;
    color: #155724;
}

.status-perdedor {
    background: #f8d7da;
    color: #721c24;
    padding: 8px 12px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0;
}

.resultado-info {
    margin: 15px 0;
}

.resultado-info h5 {
    margin-bottom: 10px;
    color: #333;
    font-size: 16px;
}

.numeros-sorteados {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.numero-sorteado {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 10px;
    min-width: 60px;
    position: relative;
}

.numero-sorteado.seu-numero {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.numero-sorteado .posicao {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 5px;
}

.numero-sorteado .numero {
    font-size: 18px;
    font-weight: bold;
}

.badge-seu {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #28a745;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
}

.criterio-vencedor {
    color: #6c757d;
    font-style: italic;
}

.seus-numeros h5 {
    margin-bottom: 10px;
    color: #333;
    font-size: 16px;
}

.numero-item.premiado {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
    position: relative;
}

.premiado-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ffc107;
    color: #000;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

/* Adicione ao seu arquivo CSS */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.popup .close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.form-group {
    margin-bottom: 15px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 5px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

/* Estilos específicos para o popup de cadastro */
.cadastro-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.cadastro-content {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.cadastro-header {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.cadastro-header h2 {
    margin: 0;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cadastro-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.cadastro-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.cadastro-body {
    padding: 25px;
}

.form-group {
    margin-bottom: 20px;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #eaeaea;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #6a11cb;
    outline: none;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 5px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: normal;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 5px;
}

.checkbox-group input {
    width: auto;
    margin-top: 3px;
}

.checkbox-group label {
    font-weight: normal;
    line-height: 1.4;
}

.terms-link {
    color: #6a11cb;
    text-decoration: none;
}

.terms-link:hover {
    text-decoration: underline;
}

.btn-primary {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: opacity 0.3s;
}

.btn-primary:hover {
    opacity: 0.9;
}

/* Adicione este estilo para o campo de data */
.date-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #eaeaea;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.date-input:focus {
    border-color: #6a11cb;
    outline: none;
}

.date-input::placeholder {
    color: #999;
}

.cep-valid {
    border-color: #28a745 !important;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.cep-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.cep-loading {
    border-color: #ffc107 !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
}


@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .radio-group {
        flex-direction: column;
        gap: 10px;
    }
}

/* Dashboard Stats */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.stat-info h3 {
    font-size: 24px;
    margin: 0 0 5px 0;
    color: #333;
}

.stat-info p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* Charts */
.dashboard-charts {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.chart-container {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.chart-container h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
}

/* Ranking List */
.ranking-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    background: #fafafa;
}

.ranking-item {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.ranking-item:last-child {
    margin-bottom: 0;
}

.ranking-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.ranking-title {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    line-height: 1.3;
    flex: 1;
    margin-right: 10px;
}

.ranking-date {
    font-size: 11px;
    color: #666;
    white-space: nowrap;
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
}

.ranking-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 12px;
}

.ranking-numbers {
    color: #666;
}

.ranking-percentage {
    font-weight: 600;
    color: #6a11cb;
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
}

.ranking-progress {
    width: 100%;
    height: 6px;
    background: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
}

.ranking-progress-bar {
    height: 100%;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* Scrollbar personalizada */
.ranking-list::-webkit-scrollbar {
    width: 6px;
}

.ranking-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.ranking-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.ranking-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Estados diferentes baseados na ocupação */
.ranking-item.alta-ocupacao .ranking-percentage {
    background: #d4edda;
    color: #155724;
}

.ranking-item.alta-ocupacao .ranking-progress-bar {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.ranking-item.media-ocupacao .ranking-percentage {
    background: #fff3cd;
    color: #856404;
}

.ranking-item.media-ocupacao .ranking-progress-bar {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
}

.ranking-item.baixa-ocupacao .ranking-percentage {
    background: #f8d7da;
    color: #721c24;
}

.ranking-item.baixa-ocupacao .ranking-progress-bar {
    background: linear-gradient(135deg, #dc3545 0%, #e83e8c 100%);
}

/* Responsividade */
@media (max-width: 768px) {
    .ranking-header {
        flex-direction: column;
        gap: 5px;
    }

    .ranking-date {
        align-self: flex-start;
    }

    .ranking-title {
        margin-right: 0;
    }
}


/* Notifications */
.dashboard-notifications {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.notification-item {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-icon {
    color: #6a11cb;
    font-size: 16px;
    margin-top: 2px;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 500;
    margin: 0 0 5px 0;
    color: #333;
}

.notification-desc {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.notification-time {
    font-size: 12px;
    color: #999;
}

/* Content Sections */
.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

/* Tabs Navigation */
.tabs-navigation {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    color: #666;
    transition: all 0.3s;
}

.tab-btn.active {
    background: #6a11cb;
    color: white;
}

.tab-btn:hover {
    background: #f0f0f0;
}

.tab-btn.active:hover {
    background: #5a0db4;
}

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

.data-table th,
.data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.data-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.data-table tr:hover {
    background: #f8f9fa;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-active {
    background: #d4edda;
    color: #155724;
}

.status-paused {
    background: #fff3cd;
    color: #856404;
}

.status-finished {
    background: #f8d7da;
    color: #721c24;
}

.status-scheduled {
    background: #cce5ff;
    color: #004085;
}

/* Action Buttons */
.btn-action {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    font-size: 14px;
}

.btn-edit {
    background: #17a2b8;
    color: white;
}

.btn-edit:hover {
    background: #138496;
}

.btn-delete {
    background: #dc3545;
    color: white;
}

.btn-delete:hover {
    background: #c82333;
}

.btn-view {
    background: #6a11cb;
    color: white;
}

.btn-view:hover {
    background: #5a0db4;
}

.btn-clone {
    background: #28a745;
    color: white;
}

.btn-clone:hover {
    background: #218838;
}

/* Forms */
.form-container {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.form-group {
    margin-bottom: 15px;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #6a11cb;
    outline: none;
}

/* Responsividade */
@media (max-width: 1024px) {
    .dashboard-charts {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
    }

    .tabs-navigation {
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* Estilos adicionais para o dashboard */
.no-data {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 20px;
}

/* Melhorar responsividade do dashboard */
@media (max-width: 768px) {
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-charts {
        grid-template-columns: 1fr;
    }

    .stat-card {
        flex-direction: column;
        text-align: center;
    }

    .stat-icon {
        margin-bottom: 10px;
    }
}

/* Animações de carregamento */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #6a11cb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


/* Estilos adicionais para a seção Meus Sorteios */
.sorteios-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.filtros-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filtro-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.search-input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    min-width: 200px;
}

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

.sorteio-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eaeaea;
    position: relative;
}

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

.sorteio-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    z-index: 10;
}

.badge-proximo {
    background: #fff3cd;
    color: #856404;
}

.badge-normal {
    background: #d4edda;
    color: #155724;
}

.sorteio-image {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 48px;
    position: relative;
    overflow: hidden;
}

.sorteio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sorteio-content {
    padding: 20px;
}

.sorteio-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.3;
}

.sorteio-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 13px;
    color: #666;
}

.sorteio-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 15px;
}

.stat {
    text-align: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.stat-value {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #6a11cb;
}

.stat-label {
    font-size: 12px;
    color: #666;
}

.sorteio-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.btn-primary,
.btn-secondary {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-secondary {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
}

.btn-secondary:hover {
    background: #e9ecef;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.pagination-btn {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
}

.pagination-btn.active {
    background: #6a11cb;
    color: white;
    border-color: #6a11cb;
}

.pagination-btn:hover:not(.active) {
    background: #f8f9fa;
}

.notificacoes-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
}

.notificacoes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.notificacao-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.notificacao-item:last-child {
    border-bottom: none;
}

.notificacao-icon {
    color: #6a11cb;
    font-size: 16px;
    margin-top: 2px;
}

.notificacao-content {
    flex: 1;
}

.notificacao-title {
    font-weight: 500;
    margin: 0 0 5px 0;
    color: #333;
}

.notificacao-desc {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.notificacao-time {
    font-size: 12px;
    color: #999;
}

.chart-mini-container {
    margin-top: 15px;
    height: 200px;
}

.status-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-ativo {
    background: #d4edda;
    color: #155724;
}

.status-finalizado {
    background: #f8d7da;
    color: #721c24;
}

.status-cancelado {
    background: #e2e3e5;
    color: #383d41;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #ccc;
}

@media (max-width: 768px) {
    .sorteios-grid {
        grid-template-columns: 1fr;
    }

    .sorteios-header {
        flex-direction: column;
        align-items: stretch;
    }

    .filtros-container {
        flex-direction: column;
    }

    .search-input {
        width: 100%;
    }
}

/* Estilos adicionais para melhorar a exibição */
.sorteio-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 12px;
    color: #666;
}

.sorteio-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.status-ativo {
    background: #d4edda;
    color: #155724;
}

.status-finalizado {
    background: #e2e3e5;
    color: #383d41;
}

.status-cancelado {
    background: #f8d7da;
    color: #721c24;
}

.sorteio-image {
    position: relative;
}

.sorteio-image i {
    font-size: 48px;
    color: rgba(255, 255, 255, 0.8);
}

.sorteio-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.badge-proximo {
    background: #fff3cd;
    color: #856404;
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Status dos sorteios */
.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-ativo {
    background-color: #d4edda;
    color: #155724;
}

.status-finalizado {
    background-color: #e2e3e5;
    color: #383d41;
}

.status-cancelado {
    background-color: #f8d7da;
    color: #721c24;
}

.status-rascunho {
    background-color: #fff3cd;
    color: #856404;
}

.status-desconhecido {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* Badge para sorteios próximos */
.badge-proximo {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-normal {
    padding: 6px 12px;
}

/* Estilos para os modais */
.modal-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.modal-content {
    max-height: 400px;
    overflow-y: auto;
}

.participante-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.participante-info {
    flex: 1;
}

.participante-numeros {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 5px;
}

.numero-participante {
    background: #6a11cb;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
}

.participante-phone {
    font-weight: 600;
    color: #333;
}

.participante-total {
    font-weight: 600;
    color: #6a11cb;
}

.empty-participantes {
    text-align: center;
    padding: 40px;
    color: #666;
}

/* Botões de ação */
.btn-participantes,
.btn-clonar,
.btn-editar,
.btn-cancelamento {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    margin: 2px;
}

.btn-participantes {
    background: #2196F3;
    color: white;
}

.btn-clonar {
    background: #FF9800;
    color: white;
}

.btn-editar {
    background: #4CAF50;
    color: white;
}

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

.btn-participantes:hover {
    background: #1976D2;
}

.btn-clonar:hover {
    background: #F57C00;
}

.btn-editar:hover {
    background: #45a049;
}

.btn-cancelamento:hover {
    background: #da190b;
}

.btn-participantes:disabled,
.btn-clonar:disabled,
.btn-editar:disabled,
.btn-cancelamento:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Estilos para a gestão de participantes */
.participantes-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.participantes-info h3 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 18px;
}

.participantes-info p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.participantes-actions {
    display: flex;
    gap: 10px;
}

.participantes-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.stat-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 24px;
    font-weight: 600;
    color: #6a11cb;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-container {
    margin-bottom: 20px;
}

.participantes-table-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1fr 0.5fr;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.participante-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1fr 0.5fr;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid #eee;
    align-items: center;
}

.participante-item:hover {
    background: #f8f9fa;
}

.col-nome {
    display: flex;
    align-items: center;
    gap: 10px;
}

.col-telefone {
    font-family: 'Courier New', monospace;
    font-weight: 500;
    color: #333;
}

.participante-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

.participante-detalhes {
    flex: 1;
}

.participante-nome {
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}

.participante-email {
    font-size: 12px;
    color: #666;
}

.telefone-formatado {
    font-family: monospace;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 13px;
}

.numeros-lista {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 5px;
}

.numero-participante {
    background: #6a11cb;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.total-numeros {
    font-size: 11px;
    color: #666;
}

.data-compra {
    font-size: 13px;
    color: #333;
}

.col-acoes {
    display: flex;
    gap: 5px;
    justify-content: center;
}

.btn-action {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    font-size: 14px;
}

.btn-mensagem {
    background: #28a745;
    color: white;
}

.btn-mensagem:hover {
    background: #218838;
}

.btn-detalhes {
    background: #17a2b8;
    color: white;
}

.btn-detalhes:hover {
    background: #138496;
}

.loading-participantes,
.empty-participantes,
.error-participantes {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.loading-participantes i,
.empty-participantes i,
.error-participantes i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #ccc;
}

.error-participantes i {
    color: #dc3545;
}

/* Estilos para comunicação em massa */
.comunicacao-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.comunicacao-info p {
    margin: 5px 0;
    color: #333;
}

.char-count {
    text-align: right;
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.feature-coming-soon {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #ffd43b;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin-top: 20px;
}

.feature-coming-soon i {
    font-size: 48px;
    color: #e67700;
    margin-bottom: 15px;
}

.feature-coming-soon h4 {
    color: #e67700;
    margin-bottom: 10px;
}

.feature-coming-soon p {
    color: #8d6e00;
    margin: 0;
}

/* Responsividade */
@media (max-width: 768px) {
    .participantes-header {
        flex-direction: column;
        gap: 15px;
    }

    .participantes-stats {
        grid-template-columns: 1fr;
    }

    .participantes-table-header {
        display: none;
    }

    .participante-item {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 15px;
        border: 1px solid #eee;
        border-radius: 8px;
        margin-bottom: 10px;
    }

    .col-nome {
        justify-content: flex-start;
    }

    .col-acoes {
        justify-content: flex-start;
    }
}

/* Estilos para a seção de participantes */
.participantes-container {
    padding: 20px 0;
}

.filtros-participantes {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 15px;
    margin-bottom: 30px;
    align-items: end;
}

.filtro-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.participantes-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.participantes-table-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.participantes-table-header {
    display: grid;
    grid-template-columns: 80px 1.5fr 120px 1.2fr 100px 120px 100px;
    gap: 12px;
    padding: 15px 20px;
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #eee;
    align-items: center;
}

.participante-item {
    display: grid;
    grid-template-columns: 80px 1.5fr 120px 1.2fr 100px 120px 100px;
    gap: 12px;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    align-items: center;
    transition: background-color 0.3s;
}

.participante-item:hover {
    background: #f8f9fa;
}

.participante-item:last-child {
    border-bottom: none;
}

.col-sorteio .sorteio-titulo {
    font-size: 12px;
    background: #e9ecef;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Responsividade para a tabela de participantes */
@media (max-width: 1024px) {

    .participantes-table-header,
    .participante-item {
        grid-template-columns: 1.5fr 1fr 1fr;
        gap: 10px;
    }

    .col-sorteio,
    .col-data,
    .col-numeros {
        display: none;
    }
}

@media (max-width: 768px) {
    .filtros-participantes {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .participantes-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .participantes-table-header {
        display: none;
    }

    .participante-item {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 15px;
        border: 1px solid #eee;
        border-radius: 8px;
        margin-bottom: 10px;
    }

    .col-acoes {
        justify-content: flex-start !important;
    }
}

/* Estilos para a seção de participantes melhorada */
.badge-ganhador {
    background: linear-gradient(135deg, #ffc107 0%, #ff8c00 100%);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.badge-participante {
    background: #6c757d;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.participante-stats {
    margin-top: 4px;
}

.participante-stats small {
    color: #6c757d;
    font-size: 11px;
}

.info-ganhador {
    background: #fff3cd;
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 12px;
    color: #856404;
    display: flex;
    align-items: center;
    gap: 5px;
}

.info-participante {
    font-size: 12px;
    color: #6c757d;
}

.info-data-sorteio {
    margin-top: 4px;
}

.valor-compra {
    font-size: 12px;
    color: #28a745;
    font-weight: 600;
    margin-top: 4px;
}

.btn-premio {
    background: #ff9900 !important;
    color: white !important;
}

.btn-premio:hover {
    background: #e68a00 !important;
}

/* Ajustes na tabela de participantes */
.participantes-table-header {
    display: grid;
    grid-template-columns: 0.8fr 2fr 1fr 1.5fr 1fr 1fr 1.5fr 0.8fr;
    gap: 10px;
    padding: 15px 20px;
}

.participante-item {
    display: grid;
    grid-template-columns: 0.8fr 2fr 1fr 1.5fr 1fr 1fr 1.5fr 0.8fr;
    gap: 10px;
    padding: 15px 20px;
    align-items: start;
}

.col-status {
    display: flex;
    justify-content: center;
}

.col-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sorteio-status {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 8px;
    margin-top: 4px;
    display: inline-block;
}

.status-ativo {
    background: #d4edda;
    color: #155724;
}

.status-finalizado {
    background: #e2e3e5;
    color: #383d41;
}

.status-ganhador {
    background: #fff3cd;
    color: #856404;
}

/* Responsividade */
@media (max-width: 1200px) {

    .participantes-table-header,
    .participante-item {
        grid-template-columns: 70px 1.5fr 110px 1fr 90px 100px 90px;
        gap: 10px;
        padding: 12px 15px;
    }
}

@media (max-width: 992px) {

    .participantes-table-header,
    .participante-item {
        grid-template-columns: 60px 1.5fr 100px 1fr 80px 90px 80px;
        gap: 8px;
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    .col-telefone {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .participantes-stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .participantes-table-header {
        display: none;
    }

    .participante-item {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 15px;
        border: 1px solid #e9ecef;
        border-radius: 8px;
        margin-bottom: 10px;
    }

    .col-status {
        justify-content: flex-start;
    }

    .col-nome {
        justify-content: flex-start;
    }

    .col-acoes {
        justify-content: flex-start;
    }

    /* Exibir labels nas colunas em mobile */
    .participante-item>div::before {
        content: attr(data-label);
        font-weight: 600;
        color: #666;
        margin-right: 8px;
        min-width: 80px;
        display: inline-block;
    }

    .col-status::before {
        content: "Status:";
    }

    .col-nome::before {
        content: "Participante:";
    }

    .col-telefone::before {
        content: "Telefone:";
    }

    .col-sorteio::before {
        content: "Sorteio:";
    }

    .col-numeros::before {
        content: "Números:";
    }

    .col-compra::before {
        content: "Data:";
    }
}


/* Estilos para estatísticas melhoradas */
.participantes-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.stat-card.ganhadores {
    background: linear-gradient(135deg, #fff9e6 0%, #ffe6cc 100%);
    border-left: 4px solid #ff9900;
}

.stat-card.ganhadores .stat-icon {
    background: linear-gradient(135deg, #ff9900 0%, #ff6600 100%);
}

/* Adicione estas regras CSS */
.participantes-table-header {
    display: grid;
    grid-template-columns: 100px 1fr 120px 1fr 120px 120px 150px 100px;
    gap: 10px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 10px;
    font-weight: bold;
    font-size: 14px;
}

.participante-item {
    display: grid;
    grid-template-columns: 100px 1fr 120px 1fr 120px 120px 150px 100px;
    gap: 10px;
    padding: 15px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 10px;
    align-items: center;
}

.participante-item.ganhador-destaque {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-left: 4px solid #ffc107;
}

.col-status,
.col-nome,
.col-telefone,
.col-sorteio,
.col-numeros,
.col-compra,
.col-info,
.col-acoes {
    display: flex;
    align-items: center;
}

.col-compra {
    font-size: 13px;
    color: #666;
}

.badge-ganhador {
    background: #28a745;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
}

.badge-participante {
    background: #6c757d;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
}

.participante-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    overflow: hidden;
    flex-shrink: 0;
}

.participante-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.numeros-lista {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.numero-participante {
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
}

.btn-action {
    background: none;
    border: 1px solid #ddd;
    padding: 6px;
    border-radius: 4px;
    cursor: pointer;
    margin: 0 2px;
    color: #6c757d;
}

.btn-action:hover {
    background: #f8f9fa;
    color: #495057;
}

.empty-state,
.error-message {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

.empty-state i,
.error-message i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #adb5bd;
}

.dashboard-filters {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.dashboard-filters .filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dashboard-filters label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0;
}

.dashboard-filters .form-select {
    max-width: 200px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 8px 12px;
}

.numeros-info-compacta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.total-numeros {
    font-weight: 600;
    color: #333;
    font-size: 0.85rem;
}

.btn-numeros-expandir {
    background: #6a11cb;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: background 0.3s;
}

.btn-numeros-expandir:hover {
    background: #5a0db9;
}

.sem-numeros {
    color: #999;
    font-style: italic;
    font-size: 12px;
}

/* Estilos para o modal de números */
.numeros-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.numeros-popup {
    background: white;
    border-radius: 8px;
    padding: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.popup-numeros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    gap: 8px;
    margin-top: 15px;
    max-height: 300px;
    overflow-y: auto;
}

.numero-item {
    background: #f0f0f0;
    padding: 8px;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
}

.no-numbers {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 20px;
}

.participante-avatar i {
    display: flex;
    align-items: center;
    justify-content: center;
}

.participante-avatar.has-photo i {
    display: none;
}

/* Melhorias para o modal de números */
.popup-header {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.popup-header h3 {
    margin: 0;
    font-size: 18px;
}

.popup-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
}

.popup-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.popup-info p {
    margin: 5px 0;
    font-size: 14px;
}

.popup-numeros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

.numero-item {
    background: #6a11cb;
    color: white;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
}

.no-numbers {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 20px;
    grid-column: 1 / -1;
}

/* CORREÇÕES PARA O MODAL DE NÚMEROS */
.numeros-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 20px;
}

.numeros-popup {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.popup-header {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.popup-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.popup-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    flex-shrink: 0;
}

.popup-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.popup-content {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.popup-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #6a11cb;
}

.popup-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e9ecef;
}

.popup-info-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.popup-info-label {
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.popup-info-value {
    color: #333;
    font-weight: 500;
}

.popup-numeros-section {
    margin-top: 10px;
}

.popup-numeros-section h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 16px;
}

.popup-numeros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: #fafafa;
}

.numero-item {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    padding: 10px 5px;
    border-radius: 6px;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.numero-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.no-numbers {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 20px;
    grid-column: 1 / -1;
}

/* Melhorias na tabela de participantes */
.participante-item .col-numeros {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.valor-compra {
    font-size: 12px;
    color: #28a745;
    font-weight: 600;
    background: #f8fff9;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #e1f5e1;
}

/* Estilos para estatísticas financeiras */
.stat-card.dinheiro {
    background: linear-gradient(135deg, #f8fff9 0%, #e1f5e1 100%);
    border-left: 4px solid #28a745;
}

.stat-card.dinheiro .stat-icon {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

/* Ajustes responsivos */
@media (max-width: 768px) {
    .numeros-popup {
        margin: 10px;
        max-height: 90vh;
    }

    .popup-header {
        padding: 15px;
    }

    .popup-content {
        padding: 15px;
    }

    .popup-numeros-grid {
        grid-template-columns: repeat(auto-fill, minmax(45px, 1fr));
        gap: 6px;
    }

    .popup-info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

.ganhador-destaque {
    background: linear-gradient(135deg, #fff9e6 0%, #ffe6cc 100%) !important;
    border-left: 4px solid #ff9900 !important;
}

.badge-ganhador {
    background: linear-gradient(135deg, #ffc107 0%, #ff8c00 100%);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: bold;
}

.info-ganhador {
    background: rgba(255, 193, 7, 0.1);
    padding: 8px;
    border-radius: 6px;
    border-left: 3px solid #ffc107;
}

.premios-ganhos {
    margin-top: 4px;
}

.premios-ganhos small {
    display: block;
    background: rgba(255, 255, 255, 0.7);
    padding: 2px 6px;
    border-radius: 4px;
    margin: 2px 0;
    font-size: 0.75em;
}

/* Estilos específicos para o modal de dados do usuário */
.modal-dados-usuario {
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.dados-usuario {
    padding: 0;
}

.usuario-header {
    display: flex;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px 10px 0 0;
}

.usuario-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    border: 3px solid white;
    overflow: hidden;
}

.usuario-avatar-large i {
    font-size: 2rem;
    color: white;
}

.usuario-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.usuario-info-basica h4 {
    margin: 0 0 5px 0;
    font-size: 1.3rem;
}

.usuario-info-basica p {
    margin: 0 0 10px 0;
    opacity: 0.9;
}

.badge-tipo-usuario {
    background: rgba(255, 255, 255, 0.3);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.dados-section {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.dados-section:last-child {
    border-bottom: none;
}

.dados-section h5 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.dados-section h5 i {
    margin-right: 10px;
    color: #667eea;
}

.dados-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.dado-item {
    display: flex;
    flex-direction: column;
}

.dado-item.full-width {
    grid-column: 1 / -1;
}

.dado-item label {
    font-weight: 600;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.dado-item span {
    color: #333;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.chave-pix {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #28a745 !important;
}

.dados-actions {
    padding: 20px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    background: #f8f9fa;
    border-radius: 0 0 10px 10px;
}

/* Responsividade do modal */
@media (max-width: 768px) {
    .modal-dados-usuario {
        margin: 10px;
        max-height: 95vh;
    }

    .dados-grid {
        grid-template-columns: 1fr;
    }

    .usuario-header {
        flex-direction: column;
        text-align: center;
    }

    .usuario-avatar-large {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .dados-actions {
        flex-direction: column;
    }
}

/* Estilos para o modal de dados do usuário */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 20px;
}

.modal-container {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-dados-usuario {
    max-width: 700px;
}

.modal-header {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.modal-content {
    padding: 0;
}

/* Loading e estados do modal */
.modal-loading,
.modal-error {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.modal-loading i,
.modal-error i {
    font-size: 48px;
    margin-bottom: 15px;
}

.modal-error {
    color: #dc3545;
}

.modal-error i {
    color: #dc3545;
}

/* --- Dashboard Stats (ajuste de colunas a partir de 750px) --- */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

@media (min-width: 750px) {
    .dashboard-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --- Participantes Table --- */
.participantes-table-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.participantes-table-header,
.participante-item {
    display: grid;
    grid-template-columns: 120px 2fr 1fr 1fr 1fr 1fr 1fr;
    gap: 12px;
    padding: 15px 20px;
    align-items: center;
    font-size: 14px;
}

.participantes-table-header {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #eee;
}

.participante-item {
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
}

.participante-item:hover {
    background: #f9f9f9;
}

.participante-item:last-child {
    border-bottom: none;
}

/* Colunas principais */
.col-status {
    display: flex;
    justify-content: center;
    font-weight: 600;
}

.col-nome {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #333;
}

.col-nome img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.col-acoes {
    display: flex;
    gap: 6px;
    justify-content: center;
}

/* Badges */
.badge-ganhador {
    background: linear-gradient(135deg, #ffc107, #ff8c00);
    color: #fff;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
}

.badge-participante {
    background: #6c757d;
    color: #fff;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
}

/* Botões de ação */
.btn-action {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 6px;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #6c757d;
}

.btn-action:hover {
    background: #f1f1f1;
    color: #333;
}

/* --- Mobile Responsivo --- */
@media (max-width: 992px) {
    .participantes-table-header {
        display: none;
    }

    .participante-item {
        grid-template-columns: 1fr;
        padding: 15px;
        border: 1px solid #eee;
        border-radius: 8px;
        margin-bottom: 10px;
        gap: 8px;
    }

    .participante-item>div::before {
        content: attr(data-label);
        font-weight: 600;
        color: #666;
        display: inline-block;
        min-width: 90px;
    }

    .col-status::before {
        content: "Status:";
    }

    .col-nome::before {
        content: "Participante:";
    }

    .col-sorteio::before {
        content: "Sorteio:";
    }

    .col-numeros::before {
        content: "Números:";
    }

    .col-compra::before {
        content: "Data da Compra:";
    }

    .col-acoes::before {
        content: "Ações:";
    }
}

/* For "Gestão de Participantes" — force 3 colunas a partir de 750px */
@media (min-width: 750px) {

    /* Alvo os containers mais comuns usados na aba de participantes */
    .participantes-stats,
    .participantes-stats-grid,
    .participantes-stats-container,
    .participantes-stats-wrap,
    .dashboard-stats {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 18px !important;
        align-items: start !important;
    }

    /* Garantir que os cards filhos encolham corretamente e não quebrem a grid */
    .participantes-stats>*,
    .participantes-stats-grid>*,
    .dashboard-stats>* {
        min-width: 0 !important;
    }
}

/* --- Melhorias na tabela de participantes no mobile --- */
.participantes-table-container {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Desktop: mantém grid normal */
.participantes-table-header,
.participante-item {
    display: grid;
    grid-template-columns: 120px 2fr 1fr 1fr 1fr 1fr 1fr;
    gap: 12px;
    padding: 15px 20px;
    align-items: center;
    font-size: 14px;
    border-bottom: 1px solid #eee;
}

.participantes-table-header {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.participante-item:hover {
    background: #fafafa;
}

/* --- Mobile --- */
@media (max-width: 768px) {
    .participantes-table-header {
        display: none;
    }

    .participante-item {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 15px;
        margin-bottom: 12px;
        border: 1px solid #eee;
        border-radius: 8px;
        background: #fff;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    }

    /* Cada campo vira um bloco com label acima */
    .participante-item>div {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 3px;
    }

    .participante-item>div::before {
        content: attr(data-label);
        font-size: 12px;
        font-weight: 600;
        color: #6c757d;
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }

    /* Ajustes visuais */
    .col-nome {
        font-weight: 600;
        color: #333;
    }

    .col-status {
        margin-top: 4px;
    }

    .col-acoes {
        flex-direction: row;
        gap: 8px;
    }
}

/* CORREÇÃO COMPLETA PARA POPUP HEADER - MESMA LARGURA */
.numeros-popup-overlay .numeros-popup {
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden;
}

.numeros-popup-overlay .popup-header {
    width: 100% !important;
    margin: 0 !important;
    padding: 20px !important;
    border-radius: 12px 12px 0 0 !important;
    box-sizing: border-box !important;
    position: relative;
    left: 0;
    right: 0;
}

.numeros-popup-overlay .popup-content {
    padding: 20px !important;
    margin: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Remove qualquer margin ou padding extra */
.numeros-popup-overlay .numeros-popup>* {
    margin: 0 !important;
}

/* Garante que o popup em si não tenha espaçamento interno */
.numeros-popup-overlay .numeros-popup {
    display: flex !important;
    flex-direction: column !important;
}

/* Solução alternativa mais agressiva - reset completo */
#numeros-popup-overlay .numeros-popup {
    all: initial;
    display: flex !important;
    flex-direction: column !important;
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

#numeros-popup-overlay .popup-header {
    all: initial;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%) !important;
    color: white !important;
    padding: 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    flex-shrink: 0;
}

#numeros-popup-overlay .popup-content {
    all: initial;
    padding: 20px !important;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    box-sizing: border-box !important;
    width: 100% !important;
}

/* Adicionar ao final do arquivo criadores.css */

/* --- Seção Promoções --- */
#promocoes-content .sorteios-header {
    /* Reutilizando layout */
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.promocoes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.promocao-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #eaeaea;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.promocao-card-header {
    padding: 15px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.promocao-card-header h3 {
    margin: 0;
    font-size: 16px;
    color: #333;
    font-weight: 600;
}

.promocao-status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.promocao-status-ativa {
    background: #d4edda;
    color: #155724;
}

.promocao-status-inativa {
    background: #e2e3e5;
    color: #383d41;
}

.promocao-status-expirada {
    background: #f8d7da;
    color: #721c24;
}

.promocao-card-body {
    padding: 15px;
    flex-grow: 1;
}

.promocao-info-item {
    margin-bottom: 10px;
    font-size: 14px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 8px;
}

.promocao-info-item i {
    color: #6a11cb;
    width: 16px;
    text-align: center;
}

.promocao-info-item strong {
    color: #333;
}

.promocao-card-footer {
    padding: 15px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    /* Alinha botões à direita */
    gap: 10px;
    /* Espaçamento entre botões */
    flex-wrap: wrap;
    /* Permite quebrar linha se não couber */
}

/* --- Modal Promoção --- */
#modal-promocao .modal-container {
    max-width: 700px;
    /* Adicione padding horizontal para criar o espaço lateral */
    padding-left: 15px;
    /* Ajuste o valor conforme necessário */
    padding-right: 15px;
    /* Ajuste o valor conforme necessário */
    /* Garanta que o box-sizing esteja correto para o padding não aumentar a largura total */
    box-sizing: border-box;
}

/* Opcional: Remover padding do body se ele estiver causando espaçamento duplo */
#modal-promocao .cadastro-body {
    /* padding: 25px; */
    /* Comente ou remova se o padding acima for suficiente */
    padding-top: 25px;
    padding-bottom: 25px;
    /* Padding lateral removido pois foi adicionado no .modal-container */
}

#modal-promocao .modal-content {
    max-height: calc(90vh - 120px);
    /* Ajustar altura */
}

#promocao-sorteios {
    min-height: 100px;
    border: 1px solid #ddd;
    /* Estilo padrão para select */
    padding: 10px;
    border-radius: 4px;
}

#promocao-sorteios option {
    padding: 5px;
}

/* Estilo para quando o select multiple está focado */
#promocao-sorteios:focus {
    border-color: #6a11cb;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(106, 17, 203, 0.25);
}

/* Adiciona feedback visual para campos obrigatórios */
#form-promocao input:required,
#form-promocao select:required,
#form-promocao textarea:required {
    border-left: 3px solid #6a11cb;
}

#form-promocao input:invalid,
#form-promocao select:invalid,
#form-promocao textarea:invalid {
    /* border-left: 3px solid #dc3545; */
    /* Opcional: marcar inválidos */
}

/* Ocultar campos condicionais inicialmente */
#promocao-valor-minimo-group,
#promocao-novos-clientes-group {
    /* display: none; */
    /* JS vai controlar isso */
}

/* Ajuste para select multiple */
#promocao-sorteios {
    height: 150px;
    /* Altura padrão para visualização */
}

#promocao-sorteios option {
    padding: 8px;
}

/* --- Badge de usos --- */
.promocao-usos-badge {
    font-size: 12px;
    background: #e9ecef;
    color: #495057;
    padding: 3px 8px;
    border-radius: 4px;
}

/* --- Loading específico --- */
.section-loading {
    text-align: center;
    padding: 50px 20px;
    color: #666;
}

.section-loading i {
    font-size: 36px;
    margin-bottom: 10px;
    display: block;
    color: #6a11cb;
}

/* Estilos para o select múltiplo mobile-friendly */
.select-multiple-container {
    position: relative;
    width: 100%;
}

.select-multiple-display {
    border: 2px solid #eaeaea;
    border-radius: 8px;
    padding: 12px;
    background: white;
    cursor: pointer;
    display: flex;
    justify-content: between;
    align-items: center;
    transition: border-color 0.3s;
}

.select-multiple-display:focus {
    border-color: #6a11cb;
    outline: none;
}

.select-multiple-display.open {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-color: #6a11cb;
}

.select-multiple-text {
    flex: 1;
    color: #333;
    font-size: 14px;
}

.select-multiple-arrow {
    color: #666;
    transition: transform 0.3s;
}

.select-multiple-arrow.open {
    transform: rotate(180deg);
}

.select-multiple-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #6a11cb;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.select-multiple-dropdown.show {
    display: block;
}

.select-multiple-option {
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.2s;
}

.select-multiple-option:hover {
    background: #f8f9fa;
}

.select-multiple-option:last-child {
    border-bottom: none;
}

.select-multiple-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.select-multiple-checkbox.checked {
    background: #6a11cb;
    border-color: #6a11cb;
}

.select-multiple-checkbox.checked::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.select-multiple-label {
    flex: 1;
    font-size: 14px;
    color: #333;
}

.select-multiple-search {
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    background: #f8f9fa;
}

.select-multiple-search input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.select-multiple-search input:focus {
    border-color: #6a11cb;
    outline: none;
}

.select-multiple-selected {
    margin-top: 8px;
    font-size: 12px;
    color: #666;
}

/* Esconder o select nativo mas mantê-lo funcional para o formulário */
.select-multiple-native {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    height: 0;
}

/* Melhorias para mobile */
@media (max-width: 768px) {
    .select-multiple-dropdown {
        position: fixed;
        top: 50%;
        left: 20px;
        right: 20px;
        transform: translateY(-50%);
        max-height: 70vh;
        border-radius: 12px;
        border: 2px solid #6a11cb;
        z-index: 10000;
    }

    .select-multiple-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9999;
        display: none;
    }

    .select-multiple-overlay.show {
        display: block;
    }

    .select-multiple-mobile-header {
        padding: 15px;
        background: #6a11cb;
        color: white;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-radius: 10px 10px 0 0;
    }

    .select-multiple-mobile-header h3 {
        margin: 0;
        font-size: 16px;
    }

    .select-multiple-close {
        background: none;
        border: none;
        color: white;
        font-size: 18px;
        cursor: pointer;
    }
}

/* Estilo para o botão Visualizar (pode usar btn-secondary ou criar um novo) */
.promocao-card-footer .btn-view-promo {
    background-color: #17a2b8;
    /* Teal color */
    color: white;
    border-color: #17a2b8;
}

.promocao-card-footer .btn-view-promo:hover {
    background-color: #138496;
    border-color: #117a8b;
}

/* Estilo para o botão Excluir (já estava parcialmente inline, mas uma classe é melhor) */
.promocao-card-footer .btn-delete-promo {
    background-color: #dc3545;
    /* Red */
    color: white;
    border-color: #dc3545;
}

.promocao-card-footer .btn-delete-promo:hover {
    background-color: #c82333;
    /* Darker red */
    border-color: #bd2130;
}

/* Estilo para o botão Editar (pode usar btn-secondary) */
.promocao-card-footer .btn-edit-promo {
    /* Usa o estilo padrão do .btn-secondary ou pode customizar */
    background-color: #6c757d;
    color: white;
    border-color: #6c757d;
}

.promocao-card-footer .btn-edit-promo:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

/* --- Modal Visualizar Promoção (Novo) --- */
#modal-visualizar-promocao .modal-container {
    max-width: 600px;
}

#modal-visualizar-promocao .modal-content {
    padding: 20px;
}

.visualizar-promocao-info {
    font-size: 14px;
    line-height: 1.6;
}

.visualizar-promocao-info p {
    margin-bottom: 12px;
    border-bottom: 1px dashed #eee;
    padding-bottom: 12px;
}

.visualizar-promocao-info p:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.visualizar-promocao-info strong {
    color: #333;
    min-width: 100px;
    display: inline-block;
    /* Alinha melhor */
}

.visualizar-promocao-info .badge {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 5px;
}