.robots-container {

    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #333;
    background: #fff;

    border-radius: 6px;
    padding: 24px;
}

.robots-container h3 {
    margin-top: 0;
    margin-bottom: 8px;
    color: #0073aa;
    font-size: 1.3rem;
}

.robots-container p {
    margin-bottom: 16px;
    line-height: 1.5;
    color: #444;
}

.robots-field {
    margin-bottom: 18px;
}

.robots-field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #222;
}

.robots-bot-select,
.robots-rule-type,
.robots-rule-path,
#robots-sitemap,
#robots-host {
    padding: 9px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.robots-bot-select,
.robots-rule-type {
    width: 100%;
    max-width: 320px;
}

.robots-rule-path {
    width: 100%;
    max-width: 360px;
    margin-right: 8px;
}

/* Блок правил — сетка для компактного вида */
.robots-rules-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

.robots-rule {
    display: flex;
    align-items: center;
    gap: 8px;
}

.robots-remove-rule {
    background: #d93025;
    color: #fff;
    border: none;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.2s;
}

.robots-remove-rule:hover {
    background: #a00e00;
}

.robots-add-rule-btn,
#robots-add-block {
    background: #f0f0f1;
    color: #333;
    border: 1px solid #ccd0d4;
    padding: 8px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.robots-add-rule-btn:hover,
#robots-add-block:hover {
    background: #e5e5e7;
    border-color: #b4b8be;
}

/* Блоки User-agent */
.robots-block {
    border: 1px solid #eee;
    background: #fafafa;
    padding: 16px;
    border-radius: 5px;
    margin-bottom: 18px;
}

.robots-block:last-child {
    margin-bottom: 0;
}

/* Кнопка генерации и действия */
.robots-button {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 11px 20px;
    border-radius: 4px;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.robots-button:hover:not(:disabled) {
    background: #006199;
}

.robots-button:active:not(:disabled) {
    transform: translateY(1px);
}

.robots-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

#robots-result {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

#robots-output {
    font-family: "Consolas", "Monaco", "Courier New", monospace;
    font-size: 13px;
    line-height: 1.4;
    color: #24292e;
    background: #f6f8fa;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    width: 100%;
    height: auto;
    min-height: 220px;
    resize: vertical;
    padding: 12px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

/* Подсказка/small */
.robots-field small {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #666;
}

/* Адаптив */
@media (max-width: 600px) {
    .robots-rule {
        flex-direction: column;
        align-items: stretch;
    }
    .robots-rule select,
    .robots-rule input {
        width: 100%;
        max-width: none;
    }
    .robots-remove-rule {
        align-self: flex-end;
        padding: 6px 12px;
    }
}