/* Layout Container */
.robots-txt-generator-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 800px;
    margin: 40px auto 0;
}

/* Panels */
.generator-panel {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 24px;
    flex: 1;
}

.generator-panel h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 18px;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
    color: #333;
}

/* Form Styles */
.form-section {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-section h4 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 15px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 14px;
    color: #444;
}

.generator-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

/* Toggles and Checkboxes */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
    user-select: none;
    padding: 8px 12px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.2s;
}

.checkbox-label:hover {
    background: #f1f1f1;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #007bff;
    cursor: pointer;
}

.preset-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.btn-preset {
    padding: 8px 16px;
    background: #e9ecef;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-preset:hover {
    background: #dee2e6;
}

.btn-preset.primary {
    background: #007bff;
    color: white;
    border-color: #0069d9;
}

.btn-preset.primary:hover {
    background: #0056b3;
}

.btn-preset.danger {
    background: #dc3545;
    color: white;
    border-color: #c82333;
}

.btn-preset.danger:hover {
    background: #c82333;
}


/* Dynamic Lists (Path Rules) */
.dynamic-rule-item {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
}

.dynamic-rule-item select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
}

.btn-remove-rule {
    background: none;
    border: none;
    color: #dc3545;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
    padding: 0 5px;
}

.btn-remove-rule:hover {
    color: #a71d2a;
}

.btn-add-rule {
    background: #e9ecef;
    border: 1px solid #ced4da;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
}

.btn-add-rule:hover {
    background: #d3d9df;
}


/* Code Output Area */
.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #2d2d2d;
    padding: 12px 16px;
    border-radius: 8px 8px 0 0;
}

.code-header h3 {
    margin: 0;
    color: #fff;
    font-size: 16px;
    border: none;
    padding: 0;
}

.copy-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
}

.copy-btn:hover {
    background: #0056b3;
}

.copy-btn.copied {
    background: #28a745;
}

.code-output {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 20px;
    border-radius: 0 0 8px 8px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    white-space: pre-wrap;
    word-break: break-all;
    min-height: 300px;
    overflow-x: auto;
}

.info-text {
    font-size: 13px;
    color: #666;
    margin-top: 4px;
}