/* Modal Anúncio Bloqueador - Estilos */

/* Overlay do Modal */
.mab-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    backdrop-filter: blur(3px);
    animation: mabFadeIn 0.3s ease-out;
}

@keyframes mabFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Conteúdo do Modal */
.mab-modal-content {
    background: var(--mab-modal-bg, #ffffff);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: mabSlideIn 0.4s ease-out;
}

@keyframes mabSlideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Header do Modal */
.mab-modal-header {
    background: var(--mab-header-bg, linear-gradient(135deg, #006460 0%, #004051 100%));
    color: white;
    padding: 20px 25px;
    border-radius: 12px 12px 0 0;
    text-align: center;
}

.mab-modal-header h2 {
    margin: 0;
    font-size: 1.4em;
    font-weight: 600;
    line-height: 1.3;
}

/* Body do Modal */
.mab-modal-body {
    padding: 25px;
    text-align: center; /* Centralizar todo o conteúdo */
}

.mab-modal-body p {
    margin: 0 0 20px 0;
    line-height: 1.6;
    color: var(--mab-text-color, #333);
    font-size: 16px;
    text-align: center; /* Garantir que o texto fique centralizado */
}

/* Ações do Modal */
.mab-modal-actions {
    text-align: center;
    margin: 25px 0;
}

/* Botões */
.mab-btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 200px;
}

.mab-btn-primary {
    background: var(--mab-button-color, linear-gradient(135deg, #28a745 0%, #20c997 100%));
    color: white;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.mab-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
    color: white;
}

.mab-btn-primary:active {
    transform: translateY(0);
}

.mab-btn-success {
    background: linear-gradient(135deg, #006460 0%, #014738 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.mab-btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
    color: white;
}

.mab-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Seção de Countdown */
.mab-countdown {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin: 20px 0;
}

.mab-countdown p {
    margin: 10px 0;
    font-size: 18px;
    font-weight: 500;
    color: #495057;
}

#mab-timer {
    color: #007bff;
    font-weight: bold;
    font-size: 1.2em;
}

/* Barra de Progresso */
.mab-progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin: 15px 0;
}

.mab-progress {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #20c997);
    border-radius: 4px;
    transition: width 1s linear;
    width: 100%;
}

/* Texto de Aviso */
.mab-warning-text {
    color: #dc3545 !important;
    font-weight: 600;
    animation: mabPulse 2s infinite;
}

@keyframes mabPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

/* Aviso de Fechamento Prematuro */
.mab-closed-warning {
    background: #fff3cd;
    border: 2px solid #ffeaa7;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
}

.mab-closed-warning p {
    margin: 0;
    color: #856404;
    font-weight: 500;
}

/* Mensagem de Sucesso */
.mab-success {
    background: #d4edda;
    border: 2px solid #c3e6cb;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin: 20px 0;
}

.mab-success p {
    margin: 0 0 15px 0;
    color: #155724;
    font-weight: 500;
}

/* Aviso Final */
.mab-final-warning {
    background: #f8d7da;
    border: 2px solid #f5c6cb;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin: 20px 0;
}

.mab-final-warning p {
    margin: 0;
    color: #721c24;
    font-weight: 600;
}

/* Footer do Modal */
.mab-modal-footer {
    background: #f8f9fa;
    padding: 15px 25px;
    border-radius: 0 0 12px 12px;
    border-top: 1px solid #e9ecef;
    text-align: center;
}

.mab-attempts-info {
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
}

/* Responsividade */
@media (max-width: 768px) {
    .mab-modal-content {
        margin: 20px;
        width: calc(100% - 40px);
    }
    
    .mab-modal-header {
        padding: 15px 20px;
    }
    
    .mab-modal-header h2 {
        font-size: 1.2em;
    }
    
    .mab-modal-body {
        padding: 20px;
    }
    
    .mab-btn {
        min-width: 150px;
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .mab-modal-content {
        margin: 10px;
        width: calc(100% - 20px);
    }
    
    .mab-modal-header {
        padding: 12px 15px;
    }
    
    .mab-modal-body {
        padding: 15px;
    }
    
    .mab-btn {
        width: 100%;
        min-width: auto;
    }
}

/* Estados de Loading */
.mab-loading {
    opacity: 0.7;
    pointer-events: none;
}

.mab-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: mabSpin 1s ease-in-out infinite;
    margin-right: 8px;
}

@keyframes mabSpin {
    to {
        transform: rotate(360deg);
    }
}

/* Estilos para o Admin */
.mab-admin-tabs .nav-tab-wrapper {
    border-bottom: 1px solid #ccd0d4;
    margin-bottom: 20px;
}

.mab-admin-tabs .tab-content {
    background: #ffffff;
    padding: 20px;
    border: 1px solid #ccd0d4;
    border-radius: 0 0 4px 4px;
}

.mab-stats-container {
    margin: 20px 0;
}

.mab-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.mab-stat-widget {
    background: #ffffff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.mab-stat-widget h3 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mab-stat-widget .stat-number {
    font-size: 32px;
    font-weight: bold;
    color: #007cba;
    line-height: 1;
}

.mab-user-actions {
    background: #ffffff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
}

.mab-suspicious-users {
    background: #ffffff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 20px;
}

.mab-charts-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

/* Animações adicionais */
.mab-fade-in {
    animation: mabFadeIn 0.5s ease-in;
}

.mab-slide-up {
    animation: mabSlideUp 0.4s ease-out;
}

@keyframes mabSlideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Estilos de cooldown removidos - sistema agora é silencioso */

/* Aviso de Cooldown */
.mab-cooldown-info {
    background: #e3f2fd;
    border: 2px solid #2196f3;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin: 20px 0;
}

.mab-cooldown-info p {
    margin: 5px 0;
    color: #1565c0;
    font-weight: 500;
}

#mab-cooldown-timer {
    font-weight: bold;
    font-size: 1.1em;
    color: #0d47a1;
}

/* Anti-bypass - esconde elementos de debug */
.mab-debug-info {
    display: none !important;
}