/* Osom Multi Theme Switcher Admin Styles */

.omts-admin-wrap {
    max-width: 1200px;
}

.omts-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 20px;
}

.omts-add-rule-section,
.omts-rules-list-section {
    background: #fff;
    border: 1px solid #ccd0d4;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
    padding: 20px;
}

.omts-add-rule-section h2,
.omts-rules-list-section h2 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e5e5;
}

#omts-add-rule-form .form-table {
    margin-top: 20px;
}

#omts-add-rule-form .form-table th {
    width: 200px;
}

.omts-rules-list-section table {
    margin-top: 20px;
}

.omts-no-rules {
    text-align: center;
    font-style: italic;
    color: #666;
}

.omts-delete-rule {
    color: #b32d2e;
}

.omts-delete-rule:hover {
    color: #dc3232;
    border-color: #dc3232;
}

/* Form field styling */
#omts-add-rule-form select,
#omts-add-rule-form input[type="text"] {
    width: 100%;
    max-width: 400px;
}

/* Loading state */
.omts-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Success message */
.omts-success-message {
    display: inline-block;
    margin-left: 10px;
    color: #46b450;
    font-weight: 600;
    animation: fadeOut 2s forwards;
}

@keyframes fadeOut {
    0% { opacity: 1; }
    70% { opacity: 1; }
    100% { opacity: 0; }
}

/* REST Prefix Section */
.omts-rest-prefix-section {
    background: #fff;
    border: 1px solid #ccd0d4;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
    padding: 20px;
    margin-top: 30px;
}

.omts-rest-prefix-section h2 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e5e5;
}

.omts-rest-prefix-section h3 {
    margin-top: 0;
    font-size: 1.1em;
}

.omts-rest-prefix-section .description {
    color: #666;
    font-size: 13px;
    margin-bottom: 20px;
}

.omts-add-prefix-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e5e5;
}

#omts-add-prefix-form .form-table {
    margin-top: 10px;
}

#omts-add-prefix-form .form-table th {
    width: 200px;
}

#omts-add-prefix-form select,
#omts-add-prefix-form input[type="text"] {
    width: 100%;
    max-width: 400px;
}

.omts-prefixes-list table {
    margin-top: 10px;
}

.omts-prefixes-list table code {
    background: #f0f0f1;
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 12px;
}

.omts-no-prefixes {
    text-align: center;
    font-style: italic;
    color: #666;
}

.omts-delete-prefix {
    color: #b32d2e;
}

.omts-delete-prefix:hover {
    color: #dc3232;
    border-color: #dc3232;
}

/* Responsive */
@media (max-width: 768px) {
    .omts-container {
        grid-template-columns: 1fr;
    }

    #omts-add-rule-form .form-table th,
    #omts-add-prefix-form .form-table th {
        width: auto;
    }
}
