/* ========================================
   CAMPANHAS - Estilos Completos
   ======================================== */

/* ========================================
   CONTAINER E LAYOUT PRINCIPAL
   ======================================== */

.ninedev-campaigns-container {
    margin: 15px 0;
}

.campaign-spacing {
    height: 15px;
}

/* ========================================
   EXIBIÇÃO DE CAMPANHAS NO FRONTEND
   ======================================== */

.ninedev-campaign-display {
    margin: 0;
    padding: 0;
    animation: fadeIn 0.3s ease-out;
}

.campaign-banner {
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 15px;
    color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
}

.campaign-content {
    position: relative;
}

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

.campaign-text {
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 15px 0;
    color: #555;
}

.campaign-text p {
    margin: 0 0 15px 0;
}

.campaign-text p:last-child {
    margin-bottom: 0;
}

/* ========================================
   CONTEÚDO RICO (IMAGENS, TABELAS, ETC)
   ======================================== */

.campaign-text img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 10px 0;
}

.campaign-text img.alignleft {
    float: left;
    margin: 10px 15px 10px 0;
}

.campaign-text img.alignright {
    float: right;
    margin: 10px 0 10px 15px;
}

.campaign-text img.aligncenter {
    display: block;
    margin: 15px auto;
}

.campaign-text img.alignnone {
    margin: 10px 0;
}

.campaign-text:after {
    content: "";
    display: table;
    clear: both;
}

/* Títulos */
.campaign-text h1,
.campaign-text h2,
.campaign-text h3,
.campaign-text h4,
.campaign-text h5,
.campaign-text h6 {
    margin: 20px 0 10px 0;
    color: #333;
    font-weight: 600;
}

.campaign-text h1 { font-size: 24px; }
.campaign-text h2 { font-size: 22px; }
.campaign-text h3 { font-size: 20px; }
.campaign-text h4 { font-size: 18px; }
.campaign-text h5 { font-size: 16px; }
.campaign-text h6 { font-size: 15px; }

/* Listas */
.campaign-text ul,
.campaign-text ol {
    margin: 15px 0;
    padding-left: 25px;
}

.campaign-text li {
    margin: 5px 0;
}

/* Citações */
.campaign-text blockquote {
    margin: 20px 0;
    padding: 15px 20px;
    background: #f8f9fa;
    font-style: italic;
    color: #555;
}

/* Tabelas */
.campaign-text table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.campaign-text table th,
.campaign-text table td {
    padding: 10px;
    border: 1px solid #e1e5e9;
    text-align: left;
}

.campaign-text table th {
    background: #f8f9fa;
    font-weight: 600;
}

/* Links */
.campaign-text a {
    color: #3148BB;
    text-decoration: none;
}

.campaign-text a:hover {
    text-decoration: underline;
}

/* Formatação */
.campaign-text strong {
    font-weight: 600;
}

.campaign-text em {
    font-style: italic;
}

.campaign-text hr {
    border: none;
    height: 1px;
    background: #e1e5e9;
    margin: 20px 0;
}

/* ========================================
   BOTÕES E AÇÕES
   ======================================== */

.campaign-actions {
    margin-top: 15px;
}

.campaign-button {
    display: inline-block;
    background: #3148BB;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    border: 1px solid #3148BB;
    transition: all 0.3s ease;
}

.campaign-button:hover {
    background: #2a3da3;
    border-color: #2a3da3;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(49, 72, 187, 0.3);
}

.campaign-button:active {
    transform: translateY(0);
}

/* ========================================
   FORMULÁRIO DE AVALIAÇÃO
   ======================================== */

.evaluation-form {
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    margin-top: 15px;
}

.evaluation-question {
    font-weight: 600;
    color: #495057;
    margin-bottom: 15px;
    font-size: 16px;
}

.evaluation-question h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.evaluation-rating {
    margin-bottom: 20px;
}

.rating-stars {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-start;
    gap: 8px;
}

.rating-stars input[type="radio"] {
    display: none;
}

.rating-stars label {
    font-size: 28px;
    color: #ddd;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.rating-stars label:hover,
.rating-stars label:hover ~ label,
.rating-stars input[type="radio"]:checked ~ label {
    color: #ffc107;
    transform: scale(1.1);
}

.rating-stars input[type="radio"]:checked ~ label {
    text-shadow: 0 0 8px rgba(255, 193, 7, 0.3);
}

.evaluation-insights {
    margin-bottom: 20px;
}

.evaluation-insights label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.evaluation-textarea {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 14px;
    resize: vertical;
    font-family: inherit;
    line-height: 1.5;
}

.evaluation-textarea:focus {
    border-color: #3148BB;
    outline: none;
    box-shadow: 0 0 0 3px rgba(49, 72, 187, 0.1);
}

.evaluation-actions {
    text-align: center;
}

.evaluation-submit-btn {
    background: #3148BB;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
}

.evaluation-submit-btn:hover {
    background: #2a3da3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(49, 72, 187, 0.3);
}

.evaluation-submit-btn:active {
    transform: translateY(0);
}

.evaluation-submit-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.evaluation-message {
    margin-top: 15px;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

.evaluation-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.evaluation-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ========================================
   ADMINISTRAÇÃO - TABELA DE CAMPANHAS
   ======================================== */

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px 0;
    border-bottom: 2px solid #e1e5e9;
}

.table-header h2 {
    margin: 0;
    color: #495057;
    font-size: 24px;
    font-weight: 600;
}

.table-responsive {
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.campaigns-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
}

.campaigns-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
    padding: 15px 12px;
    text-align: left;
    border-bottom: 2px solid #e1e5e9;
    font-size: 14px;
}

.campaigns-table td {
    padding: 15px 12px;
    border-bottom: 1px solid #f1f3f4;
    vertical-align: middle;
}

.campaign-title-cell {
    min-width: 200px;
}

.campaign-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.campaign-image {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 5px;
}

.campaign-created {
    font-size: 12px;
    color: #6c757d;
}

/* Tags de Status */
.status-tag {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

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

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

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

/* Tags de Tipo */
.type-tag {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.type-normal {
    background: #e3f2fd;
    color: #0d47a1;
}

.type-evaluation {
    background: #e8f5e8;
    color: #1b5e20;
}

/* Tags de Prioridade */
.priority-tag {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.priority-1 { background: #ffebee; color: #c62828; }
.priority-2 { background: #fff3e0; color: #ef6c00; }
.priority-3 { background: #f3e5f5; color: #7b1fa2; }
.priority-4 { background: #e8f5e8; color: #2e7d32; }
.priority-5 { background: #e3f2fd; color: #1565c0; }

/* Tags de Subdomínio */
.subdomain-tag {
    display: inline-block;
    padding: 2px 6px;
    background: #f8f9fa;
    color: #495057;
    border-radius: 3px;
    font-size: 11px;
    margin: 1px;
}

/* Informações de Período */
.period-info {
    font-size: 13px;
    color: #495057;
}

.period-dates {
    font-weight: 500;
    color: #333;
}

/* Botões de Ação */
.action-buttons {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.rep-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 32px;
    justify-content: center;
    background: #f8f9fa;
    color: #333;
}

.rep-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    color: #333;
}

.rep-btn-sm {
    padding: 4px 8px !important;
    font-size: 11px !important;
    min-height: 28px !important;
    min-width: 28px !important;
}

.rep-btn-primary {
    background: #f8f9fa;
    color: #333;
    border-color: #dee2e6;
}

.rep-btn-primary.active,
.rep-btn-primary:active {
    background: #3148BB;
    color: white;
    border-color: #3148BB;
    box-shadow: 0 4px 12px rgba(49, 72, 187, 0.3);
}

.rep-btn-primary.active:hover,
.rep-btn-primary:active:hover {
    background: #2a3da3;
    border-color: #2a3da3;
    color: white;
}

.rep-btn:not(.rep-btn-primary):not(.rep-btn-secondary):not(.rep-btn-danger):not(.rep-btn-info) {
    background: #f8f9fa;
    color: #333;
    border-color: #dee2e6;
}

.rep-btn:not(.rep-btn-primary):not(.rep-btn-secondary):not(.rep-btn-danger):not(.rep-btn-info):hover {
    background: #e9ecef;
    border-color: #adb5bd;
    color: #333;
}

.rep-btn-secondary {
    background: #6c757d;
    color: white;
    border-color: #6c757d;
}

.rep-btn-secondary:hover {
    background: #5a6268;
    border-color: #5a6268;
    color: white;
}

.rep-btn-danger {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

.rep-btn-danger:hover {
    background: #c82333;
    border-color: #c82333;
    color: white;
}

.rep-btn-info {
    background: #17a2b8;
    color: white;
    border-color: #17a2b8;
}

.rep-btn-info:hover {
    background: #138496;
    border-color: #138496;
    color: white;
}

/* ========================================
   FORMULÁRIO DE CAMPANHAS
   ======================================== */

.campaign-form-section {
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f3f4;
    color: #495057;
    font-size: 18px;
    font-weight: 600;
}

.section-title .dashicons {
    color: #3148BB;
    font-size: 20px;
}

/* Sistema de Grid */
.form-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 20px;
}

.form-grid-2 {
    grid-template-columns: 1fr 1fr;
}

.form-grid-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

.form-grid-2-1 {
    grid-template-columns: 2fr 1fr;
}

/* Grid específico para datas */
.form-grid-dates {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 25px !important;
    align-items: start !important;
}

/* Campos do formulário */
.form-field {
    display: flex;
    flex-direction: column;
    min-height: 80px;
}

.form-field-large {
    grid-column: span 2;
}

.form-field-small {
    grid-column: span 1;
}

.form-field-full {
    grid-column: 1 / -1;
}

.form-field-checkbox {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 80px;
}

/* Campo de data específico */
.form-field-date {
    min-height: 90px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    border: none !important;
    box-shadow: none !important;
}

.form-field-date label {
    font-weight: 600 !important;
    color: #495057 !important;
    margin-bottom: 8px !important;
    font-size: 14px !important;
}

.form-field-date input[type="datetime-local"] {
    padding: 12px 16px !important;
    border: 2px solid #e1e5e9 !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    background: white !important;
}

.form-field-date input[type="datetime-local"]:focus {
    border-color: #3148BB !important;
    box-shadow: 0 0 0 3px rgba(49, 72, 187, 0.1) !important;
    outline: none !important;
}

.form-field-date small {
    margin-top: 6px !important;
    color: #6c757d !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
}

/* Campos de formulário */
.rep-form-group {
    margin-bottom: 20px;
}

.rep-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.rep-form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    background: white;
}

.rep-form-control:focus {
    outline: none;
    border-color: #3148BB;
    box-shadow: 0 0 0 3px rgba(49, 72, 187, 0.1);
}

.rep-form-group small {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 6px;
    color: #6c757d;
    font-size: 12px;
    font-style: italic;
}

.rep-form-group small .dashicons {
    font-size: 14px;
    color: #3148BB;
}

/* Checkbox customizado */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 500;
    color: #495057;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #e1e5e9;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: white;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #3148BB;
    border-color: #3148BB;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark:after {
    content: "✓";
    color: white;
    font-weight: bold;
    font-size: 12px;
}

/* Editor de texto */
.editor-container {
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

.editor-help {
    margin-top: 10px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 6px;
}

/* Upload de imagem */
.image-upload-container {
    margin-bottom: 15px;
    border: 2px dashed #e1e5e9;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    background: #fafbfc;
}

.image-upload-container.has-image {
    border-style: solid;
    border-color: #3148BB;
    background: white;
}

.image-preview {
    position: relative;
    display: inline-block;
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.remove-image-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-image-btn:hover {
    background: #c82333;
}

.upload-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

/* Ações do formulário */
.campaign-form-actions {
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    padding: 20px 25px;
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-actions-left {
    display: flex;
    gap: 15px;
    align-items: center;
}

.form-actions-right {
    display: flex;
    align-items: center;
}

.form-help {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #6c757d;
    font-size: 12px;
    font-style: italic;
}

.form-help .dashicons {
    color: #3148BB;
    font-size: 14px;
}

/* ========================================
   MODAL DE CAMPANHAS
   ======================================== */

.campaign-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.5) !important;
    z-index: 999999 !important;
    display: none;
    align-items: center;
    justify-content: center;
}

.campaign-modal.show {
    display: flex !important;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.modal-content {
    position: relative;
    background: white;
    margin: 2% auto;
    width: 95%;
    max-width: 1200px;
    height: 90vh;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 1000000;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #e1e5e9;
    background: #f8f9fa;
    flex-shrink: 0;
}

.modal-header h2 {
    margin: 0;
    color: #495057;
    font-size: 24px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #6c757d;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #e9ecef;
    color: #495057;
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
    -webkit-overflow-scrolling: touch;
}

/* Scrollbar personalizada para o modal */
.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
    transition: background 0.2s ease;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.4);
}

/* Scrollbar para Firefox */
.modal-body {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

/* Prevenir scroll do body quando modal estiver aberto */
body.modal-open {
    overflow: hidden !important;
}

/* Garantir que o modal apareça acima de tudo */
.campaign-modal {
    backdrop-filter: blur(2px);
}

.campaign-modal * {
    box-sizing: border-box;
}

/* ========================================
   MODAL DE RESULTADOS
   ======================================== */

.results-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.results-content {
    background: white;
    border-radius: 8px;
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.results-header {
    padding: 20px;
    border-bottom: 1px solid #e1e5e9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.results-header h3 {
    margin: 0;
    color: #495057;
    font-size: 20px;
}

.results-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #6c757d;
    cursor: pointer;
    padding: 5px;
}

.results-stats {
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e1e5e9;
}

.stat-card {
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    padding: 15px;
    text-align: center;
    margin-bottom: 10px;
}

.stat-number {
    font-size: 24px;
    font-weight: 600;
    color: #3148BB;
}

.stat-label {
    font-size: 12px;
    color: #6c757d;
    text-transform: uppercase;
}

.results-filters {
    padding: 15px 20px;
    border-bottom: 1px solid #e1e5e9;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-select {
    padding: 8px 12px;
    border: 1px solid #e1e5e9;
    border-radius: 4px;
    font-size: 14px;
    background: white;
}

.results-list {
    padding: 20px;
}

.evaluation-item {
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 10px;
}

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

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

.user-name {
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.user-subdomain {
    font-size: 12px;
    color: #6c757d;
}

.evaluation-rating {
    display: flex;
    gap: 2px;
}

.rating-star-filled {
    color: #ffc107;
    font-size: 16px;
}

.rating-star-empty {
    color: #ddd;
    font-size: 16px;
}

.evaluation-date {
    font-size: 12px;
    color: #6c757d;
}

.evaluation-insights {
    margin-top: 10px;
    padding: 10px;
    background: white;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.4;
    color: #495057;
}

/* ========================================
   RESPONSIVIDADE
   ======================================== */

@media (max-width: 1200px) {
    .form-grid-3 {
        grid-template-columns: 1fr 1fr;
    }
    
    .form-field-large {
        grid-column: span 2;
    }
}

/* Responsividade do modal */
@media (max-width: 768px) {
    .modal-content {
        margin: 3% auto;
        width: 96%;
        height: 94vh;
    }
    
    .modal-header {
        padding: 15px 20px;
        flex-shrink: 0;
    }
    
    .modal-header h2 {
        font-size: 20px;
    }
    
    .modal-body {
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }
}

@media (max-width: 480px) {
    .modal-content {
        margin: 0;
        width: 100%;
        height: 100vh;
        border-radius: 0;
    }
    
    .modal-header {
        padding: 12px 15px;
        flex-shrink: 0;
    }
    
    .modal-header h2 {
        font-size: 18px;
    }
    
    .modal-body {
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        padding-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .campaign-banner {
        padding: 8px;
        margin: 8px 0;
    }
    
    .campaign-title {
        font-size: 16px;
        margin: 0 0 8px 0;
    }
    
    .campaign-text {
        font-size: 12px;
        margin: 0 0 10px 0;
    }
    
    .campaign-button {
        padding: 6px 12px;
        font-size: 11px;
    }
    
    .campaign-actions {
        margin-top: 10px;
    }
    
    .ninedev-campaigns-container {
        margin: 10px 0;
    }
    
    .campaign-spacing {
        height: 10px;
    }
    
    .campaign-text img.alignleft,
    .campaign-text img.alignright {
        float: none;
        display: block;
        margin: 10px auto;
    }
    
    .campaign-text table {
        font-size: 11px;
    }
    
    .campaign-text table th,
    .campaign-text table td {
        padding: 6px 4px;
    }
    
    .woocommerce-account .ninedev-campaign-display {
        margin: 0 0 15px 0;
    }
    
    .campaign-form-section {
        padding: 20px;
        margin-bottom: 20px;
        border-radius: 12px;
    }
    
    .section-title {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .form-grid-2,
    .form-grid-3,
    .form-grid-2-1 {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .form-field-large,
    .form-field-small,
    .form-field-full {
        grid-column: 1;
    }
    
    .form-field {
        min-height: auto;
    }
    
    .form-field-checkbox {
        justify-content: flex-start;
        min-height: auto;
    }
    
    .campaign-form-actions {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 15px 20px;
    }
    
    .form-actions-left {
        flex-direction: column;
        width: 100%;
    }
    
    .rep-btn {
        width: 100%;
        justify-content: center;
        min-height: 48px;
    }
    
    .upload-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .upload-buttons .rep-btn {
        width: 100%;
    }
    
    .table-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .campaigns-table {
        font-size: 12px;
    }
    
    .campaigns-table th,
    .campaigns-table td {
        padding: 8px 6px;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 3px;
    }
    
    .rep-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .form-grid-dates {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    .form-field-date {
        min-height: auto !important;
    }
}

@media (max-width: 480px) {
    .campaign-form-section {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .section-title {
        font-size: 14px;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .section-title .dashicons {
        font-size: 16px;
    }
    
    .rep-form-control {
        padding: 10px 12px;
        font-size: 16px;
    }
    
    .rep-btn {
        padding: 12px 16px;
        font-size: 14px;
    }
}

/* ========================================
   ANIMAÇÕES E EFEITOS
   ======================================== */

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

/* ========================================
   INTEGRAÇÃO COM WOOCOMMERCE
   ======================================== */

.woocommerce-account .ninedev-campaign-display {
    margin: 0 0 20px 0;
}

.elementor-widget-woocommerce-my-account .e-my-account-tab__dashboard:not(.e-my-account-tab__dashboard--custom) .woocommerce-MyAccount-content-wrapper, 
.elementor-widget-woocommerce-my-account .e-my-account-tab__edit-account .woocommerce-MyAccount-content-wrapper, 
.elementor-widget-woocommerce-my-account .e-my-account-tab__payment-methods .woocommerce-MyAccount-content-wrapper {
    padding: 0 !important;
}

/* ========================================
   ESTILOS DE CAMPANHA (CORES)
   ======================================== */

.campaign-style-info .campaign-banner {
    background: #e3f2fd;
    border-color: #2196f3;
    color: #0d47a1;
}

.campaign-style-success .campaign-banner {
    background: #e8f5e8;
    border-color: #4caf50;
    color: #1b5e20;
}

.campaign-style-warning .campaign-banner {
    background: #fff3e0;
    border-color: #ff9800;
    color: #e65100;
}

.campaign-style-danger .campaign-banner {
    background: #ffebee;
    border-color: #f44336;
    color: #b71c1c;
}

/* ========================================
   POSICIONAMENTO
   ======================================== */

.campaign-position-middle {
    margin: 40px 0;
}

.campaign-position-bottom {
    margin-top: 40px;
}

/* ========================================
   ACESSIBILIDADE
   ======================================== */

.campaign-button:focus,
.rep-form-control:focus,
.rep-btn:focus {
    outline: 2px solid #3148BB;
    outline-offset: 2px;
}