/**
 * Admin styles for Yandex News Feed plugin
 */

.yandex-news-feed-header {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 20px;
    margin: 20px 0;
}

.feed-url-box {
    text-align: center;
}

.feed-url-box h3 {
    margin-top: 0;
    color: #23282d;
}

.feed-url-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.feed-url-inline input {
    font-family: monospace;
    font-size: 14px;
    background: #f1f1f1;
    border: 1px solid #ddd;
    padding: 8px 12px;
    border-radius: 3px;
    flex: 1 1 320px;
    max-width: 600px;
}

.feed-url-inline .feed-open-button {
    white-space: nowrap;
}

.feed-url-box .description {
    margin-top: 10px;
    font-style: italic;
    color: #666;
}

.yandex-categories-list {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ddd;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 3px;
}

.yandex-categories-list label {
    display: block;
    margin-bottom: 5px;
    font-weight: normal;
}

.yandex-categories-list input[type="checkbox"] {
    margin-right: 8px;
}

.yandex-news-feed-help {
    background: #f0f6fc;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    padding: 20px;
    margin-top: 30px;
}

.yandex-news-feed-help h3,
.yandex-news-feed-help h4 {
    margin-top: 0;
    color: #1d2327;
}

.yandex-news-feed-help ol,
.yandex-news-feed-help ul {
    margin-left: 20px;
}

.yandex-news-feed-help li {
    margin-bottom: 5px;
}

/* Validation status indicators */
.validation-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.validation-status.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.validation-status.warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.validation-status.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Form table improvements */
.form-table th {
    width: 200px;
    vertical-align: top;
    padding-top: 15px;
}

.form-table td {
    padding-top: 15px;
}

.form-table fieldset label {
    display: block;
    margin-bottom: 8px;
}

/* Responsive design */
@media (max-width: 782px) {
    .yandex-news-feed-header {
        padding: 15px;
    }
    
    .feed-url-inline input {
        font-size: 12px;
        padding: 6px 10px;
    }
    
    .form-table th,
    .form-table td {
        display: block;
        width: 100%;
        padding: 10px 0;
    }
    
    .form-table th {
        border-bottom: none;
        padding-bottom: 5px;
    }
}

/* Meta box styles */
#yandex-news-feed-exclude .inside {
    margin: 0;
    padding: 12px;
}

#yandex-news-feed-exclude label {
    display: block;
    margin-bottom: 8px;
}

#yandex-news-feed-exclude input[type="checkbox"] {
    margin-right: 8px;
}

#yandex-news-feed-exclude .description {
    font-style: italic;
    color: #666;
    margin-top: 5px;
}
