/* --- START OF FILE style.css --- */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f4f7f6;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 10px auto;
    background-color: #fff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* --- Nouveaux styles pour la config --- */
.config-section {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 5px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.btn-secondary {
    background-color: #607d8b; /* Bleu gris */
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.btn-secondary:hover {
    background-color: #546e7a;
}

.upload-label {
    margin-right: 0; /* Override global label margin */
}
/* ------------------------------------ */

h1, h2 {
    color: #2c3e50;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 5px;
    margin-top: 5px;
    margin-bottom: 5px;
}

.section {
    margin-bottom: 5px;
    padding: 10px;
    background-color: #fdfdfd;
    border: 1px solid #eee;
    border-radius: 5px;
}

textarea {
    width: calc(100% - 10px);
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9em;
    resize: vertical;
}

label {
    margin-right: 15px;
    font-weight: normal;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

label input[type="radio"] {
    margin-right: 5px;
}

button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
    margin-right: 10px;
}

button:hover {
    background-color: #45a049;
}

button#clearAll {
    background-color: #f44336;
}

button#clearAll:hover {
    background-color: #d32f2f;
}

/* Styles spécifiques pour le bouton Ajouter un groupe pour ne pas qu'il soit vert */
#addKeywordGroup {
    background-color: #6c757d;
    margin-top: 10px;
}
#addKeywordGroup:hover {
    background-color: #5a6268;
}

.controls {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 30px;
}

.result-section {
    background-color: #e9ecef;
    padding: 20px;
    border-radius: 5px;
    border: 1px solid #dee2e6;
}

#outputQuery {
    background-color: #fff;
    border: 1px solid #ced4da;
    color: #495057;
    font-weight: bold;
    cursor: text;
}

#copyQuery {
    background-color: #007bff;
    margin-top: 10px;
}

#copyQuery:hover {
    background-color: #0056b3;
}

#openGoogle {
    background-color: #ff9800;
    margin-top: 10px;
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    color: white;
    transition: background-color 0.3s ease;
}

#openGoogle:hover {
    background-color: #e68a00;
}

.hidden {
    display: none;
}

.help-text {
    font-size: 0.85em;
    color: #6c757d;
    margin-top: 5px;
}

.keyword-group {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    gap: 10px;
    padding: 10px;
    border: 1px dashed #ced4da;
    border-radius: 4px;
    background-color: #fafafa;
}

.keyword-group textarea {
    flex-grow: 1;
    margin-bottom: 0;
}

.keyword-group select, .keyword-group button {
    flex-shrink: 0;
}

.keyword-operator {
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
    background-color: #f8f8f8;
}

.remove-group {
    background-color: #dc3545;
}
.remove-group:hover {
    background-color: #c82333;
}