/* Try-On Admin Styles */

.tryon-admin-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
}

.tryon-admin-header h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
}

.tryon-admin-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.tryon-settings-section {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
}

.tryon-settings-section h2 {
    font-size: 18px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.tryon-field {
    margin-bottom: 15px;
}

.tryon-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}

.tryon-field input[type="text"],
.tryon-field input[type="password"],
.tryon-field select,
.tryon-field textarea {
    width: 100%;
    max-width: 400px;
}

.tryon-field .description {
    font-size: 12px;
    color: #777;
    margin-top: 5px;
}

/* Category selection checkboxes */
.tryon-categories-wrapper {
    max-height: 200px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f9f9f9;
    margin-top: 5px;
}

.tryon-category-item {
    margin-bottom: 5px;
}

.tryon-category-item label {
    font-weight: normal;
    display: flex;
    align-items: center;
}

.tryon-category-item input[type="checkbox"] {
    margin-right: 8px;
}

/* API Key field */
.tryon-api-key-field {
    position: relative;
}

.tryon-api-key-toggle {
    position: absolute;
    right: 8px;
    top: 8px;
    cursor: pointer;
    color: #777;
    background: none;
    border: none;
    padding: 0;
}

.tryon-api-key-toggle:hover {
    color: #333;
}

/* Status indicator */
.tryon-status {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 10px;
}

.tryon-status-success {
    background-color: #e7f5ea;
    color: #0a7d33;
}

.tryon-status-error {
    background-color: #fbe9e7;
    color: #d32f2f;
}

/* Save button */
.tryon-save-button {
    background-color: #4a6bff;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

.tryon-save-button:hover {
    background-color: #3650cc;
}

/* Responsive adjustments */
@media screen and (max-width: 782px) {
    .tryon-field input[type="text"],
    .tryon-field input[type="password"],
    .tryon-field select,
    .tryon-field textarea {
        max-width: 100%;
    }
}