/* Estilos para o formulário */
.briefing-form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.form-section {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.05);
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

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

.form-group textarea {
    min-height: 100px;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
}

.button-primary {
    background-color: #4CAF50;
    color: white;
}

.button-secondary {
    background-color: #2196F3;
    color: white;
}

.info-box {
    background-color: #e8f4f8;
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid #2196F3;
}

/* Estilos para a página de resumo */
.briefing-summary-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.summary-section {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.05);
}

.summary-actions {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.bottom-actions {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.about-link {
    color: #666;
    text-decoration: underline;
    font-size: 14px;
}

.search-section {
    background-color: #f0f8ff;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.group-section {
    margin-left: 20px;
}

.keywords-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0;
}

.keyword {
    display: inline-flex;
    align-items: center;
    background-color: #2196F3;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 14px;
}

.remove-keyword {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 16px;
    margin-left: 5px;
}

.keywords-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

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

.keywords-table th {
    background-color: #f2f2f2;
}

.remove-btn {
    background-color: #f44336;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
}

.negative-keywords-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.negative-keyword {
    background-color: #ffebee;
    color: #f44336;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 14px;
}

.ad-previews {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.ad-preview-section {
    flex: 1;
    min-width: 300px;
}

.ad-preview {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 5px;
}

.ad-preview-section {
    margin-bottom: 30px;
}

.ad-preview.desktop {
    background-color: #fff;
    max-width: 600px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    font-family: Arial, sans-serif;
}

.ad-preview.desktop .ad-url {
    color: #1e8e3e;
    font-size: 14px;
    margin-bottom: 4px;
    display: block;
}

.ad-preview.desktop .ad-title {
    color: #1a0dab;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 4px;
    line-height: 1.2;
}

.ad-preview.desktop .ad-description {
    color: #3c4043;
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 8px;
}

.ad-preview.desktop .ad-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 8px;
}

.ad-preview.desktop .ad-link {
    color: #1a0dab;
    font-size: 13px;
    position: relative;
}

.ad-preview.desktop .ad-link:not(:last-child):after {
    content: '|';
    position: absolute;
    right: -7px;
    color: #70757a;
}

.ad-preview.desktop .ad-limits {
    display: flex;
    flex-direction: column;
    font-size: 12px;
    color: #70757a;
    margin-top: 8px;
}

.ad-preview.mobile {
    background-color: #ffffff;
    max-width: 340px;
    border-radius: 16px;
    padding: 0;
    font-family: Arial, sans-serif;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    border: 8px solid #000;
    position: relative;
    overflow: hidden;
}

.ad-preview.mobile .ad-status-bar {
    height: 30px;
    background-color: #000;
    width: 100%;
    position: relative;
}

.ad-preview.mobile .ad-content {
    padding: 12px;
    background-color: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.ad-preview.mobile .ad-url {
    color: #1e8e3e;
    font-size: 13px;
    margin-bottom: 4px;
    display: block;
}

.ad-preview.mobile .ad-title {
    color: #1a73e8;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 4px;
    line-height: 1.2;
}

.ad-preview.mobile .ad-description {
    color: #3c4043;
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 8px;
}

.ad-preview.mobile .ad-links {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.ad-preview.mobile .ad-link {
    color: #1a73e8;
    font-size: 13px;
    font-weight: 500;
}

.ad-preview.mobile .ad-nav-bar {
    height: 40px;
    background-color: #000;
    width: 100%;
    position: relative;
}

.ad-url {
    color: #1a0dab;
    font-size: 14px;
    margin-bottom: 5px;
}

.ad-title {
    color: #1a0dab;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}

.ad-description {
    color: #4d5156;
    font-size: 14px;
}

.add-keyword-section {
    background-color: #f9f9f9;
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
}

.add-keyword-form {
    display: flex;
    gap: 10px;
}

.add-keyword-form input,
.add-keyword-form select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.add-keyword-form input {
    flex-grow: 1;
}

@media print {
    .summary-actions, .remove-btn, .remove-keyword, .add-keyword-section {
        display: none;
    }
}

@media (max-width: 768px) {
    .add-keyword-form {
        flex-direction: column;
    }
    
    .ad-previews {
        flex-direction: column;
    }
}

/* Estilos para os botões do resumo */
.summary-actions.bottom-actions {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.summary-actions .main-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.summary-actions .secondary-links {
    margin-top: 10px;
}

.summary-actions .about-link {
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

.summary-actions .about-link:hover {
    text-decoration: underline;
}

/* Estilos para tabelas responsivas */
@media screen and (max-width: 768px) {
    .keywords-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        width: 100%;
        -webkit-overflow-scrolling: touch;
    }
    
    .ad-limits.mobile-limits {
        font-size: 11px;
    }
}

/* Estilos para campos editáveis */
[contenteditable="true"] {
    border: 1px dashed transparent;
    padding: 2px;
    transition: border-color 0.3s;
}

[contenteditable="true"]:hover {
    border-color: #ccc;
}

[contenteditable="true"]:focus {
    border-color: #1a73e8;
    outline: none;
}

.over-limit {
    color: #d32f2f;
    font-weight: bold;
}

/* Estilos para a página Sobre o Sistema */
.system-info-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.system-section {
    margin-bottom: 30px;
}

.system-section h2 {
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.system-actions {
    margin-top: 40px;
    text-align: center;
}

/* Melhorias para responsividade em dispositivos móveis */
@media screen and (max-width: 600px) {
    .keywords-list {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .keyword {
        font-size: 12px;
        padding: 4px 8px;
    }
    
    .ad-preview.mobile {
        max-width: 280px;
    }
    
    .summary-actions .main-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .summary-actions .main-buttons .button {
        width: 100%;
        text-align: center;
    }
}

/* Estilos para a lista de pontos de análise */
.analysis-points {
    margin: 15px 0;
    padding-left: 20px;
}

.analysis-points li {
    margin-bottom: 10px;
    list-style-type: none;
    position: relative;
    padding-left: 25px;
}

.analysis-points li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #4CAF50;
    font-size: 18px;
    line-height: 1;
}

@media screen and (max-width: 600px) {
    .analysis-points li {
        padding-left: 20px;
    }
}


/* Campaign Structure Colors */
.search-section.branding-campaign {
    background-color: #e8f4f8; /* Light blue background */
    border-left: 4px solid #2196F3; /* Blue border */
}

.search-section.service-campaign {
    background-color: #e8f5e9; /* Light green background */
    border-left: 4px solid #4CAF50; /* Green border */
}

/* CTA Button Styling */
.cta-action {
    text-align: center; /* Center align the content within the div */
    margin-top: 20px; /* Add space above the paragraph */
}

.cta-action .cta-highlight {
    margin-bottom: 20px; /* Add space below the paragraph */
}

.cta-action .cta-button {
    display: inline-block; /* Ensure button behaves like a block for centering */
    margin-top: 15px; /* Add space between text and button */
}



/* Disclaimer Styling */
.disclaimer {
    font-size: 0.8em; /* Smaller font size */
    color: #666; /* Grey color */
    margin-top: 10px; /* Space above the disclaimer */
}

/* Basic Copy Protection */
.briefing-summary-container {
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE10+/Edge */
    user-select: none; /* Standard */
}

