* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    min-height: 20vh;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
}

h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

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

.search-container input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
}

.search-container button {
    padding: 12px 20px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.search-container button:hover {
    background: #2980b9;
}

.options-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.include-section, .exclude-section, .date-section, .exclude-words-section {
    flex: 1;
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

.query-preview {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
    margin-top: 20px;
    min-height:200px;
    
}

#queryPreview {
    background-color: #2c3e50;
    color: white;
    padding: 10px;
    border-radius: 4px;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: monospace;
}

.date-section {
    flex-basis: 100%;
    margin-top: 20px;
}

.date-group {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

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

.date-input select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.button-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.reset-button {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.reset-button:hover {
    background-color: #c0392b;
}

.section-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.check-all-button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s;
}

.check-all-button:hover {
    background-color: #2980b9;
}

.custom-exclude {
    display: flex;
    margin-top: 15px;
    gap: 5px;
}

.custom-exclude input {
    flex: 1;
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
}

.custom-exclude button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
}

.custom-exclude button:hover {
    background-color: #2980b9;
}

.custom-exclude-list {
    margin-top: 10px;
}

.custom-exclude-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #eee;
    padding: 5px 10px;
    margin-top: 5px;
    border-radius: 3px;
    font-size: 14px;
}

.remove-word {
    background-color: transparent;
    color: #e74c3c;
    border: none;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    padding: 0 5px;
}

.remove-word:hover {
    color: #c0392b;
}
