/**
 * LLM.txt Generator Admin Styles
 */

.basis-llms-txt-file-generator-file-status {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
}

.status-success {
    color: #00a32a;
    font-weight: 600;
}

.status-error {
    color: #d63638;
    font-weight: 600;
}

.status-success .dashicons,
.status-error .dashicons {
    margin-right: 5px;
}

.basis-llms-txt-file-generator-file-status ul {
    margin: 10px 0;
    padding-left: 20px;
}

.basis-llms-txt-file-generator-file-status li {
    margin-bottom: 5px;
}

.cache-info {
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    padding: 15px;
    margin-top: 15px;
}

.cache-info h4 {
    margin-top: 0;
    margin-bottom: 10px;
}

.cache-info ul {
    margin: 10px 0;
    padding-left: 20px;
}

.cache-info li {
    margin-bottom: 5px;
}

/* Sortable post types */
.sortable-list {
    max-width: 600px;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    background: #fff;
}

.sortable-item {
    padding: 10px 15px;
    border-bottom: 1px solid #f0f0f1;
    cursor: move;
    display: flex;
    align-items: center;
}

.sortable-item:last-child {
    border-bottom: none;
}

.sortable-item:hover {
    background: #f6f7f7;
}

.sortable-item label {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 0;
    cursor: move;
}

.sortable-item input[type="checkbox"] {
    margin-right: 10px;
}

.sort-handle {
    margin-right: 10px;
    color: #8c8f94;
    cursor: move;
}

.sortable-item .count {
    margin-left: auto;
    color: #646970;
    font-size: 13px;
}

/* Drag and drop states */
.sortable-item.ui-sortable-helper {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border: 1px solid #c3c4c7;
}

.sortable-item.ui-sortable-placeholder {
    background: #f0f6fc;
    border: 2px dashed #72aee6;
    height: 50px;
    visibility: visible !important;
}

/* Button states */
.button.loading {
    opacity: 0.6;
    pointer-events: none;
}

.button.loading::after {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 8px;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Success/Error messages */
.basis-llms-txt-file-generator-message {
    padding: 10px 15px;
    margin: 15px 0;
    border-radius: 4px;
    font-weight: 600;
}

.basis-llms-txt-file-generator-message.success {
    background: #d1e7dd;
    border: 1px solid #badbcc;
    color: #0f5132;
}

.basis-llms-txt-file-generator-message.error {
    background: #f8d7da;
    border: 1px solid #f5c2c7;
    color: #842029;
}

/* Form styling improvements */
.form-table th {
    width: 200px;
}

.form-table td fieldset {
    margin: 0;
}

.form-table td fieldset legend {
    font-weight: 600;
    margin-bottom: 10px;
}

.form-table td .description {
    margin-top: 5px;
    font-style: italic;
}

/* Responsive adjustments */
@media screen and (max-width: 782px) {
    .sortable-list {
        max-width: 100%;
    }
    
    .sortable-item {
        padding: 15px;
    }
    
    .sortable-item label {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .sortable-item .count {
        margin-left: 0;
        margin-top: 5px;
    }
}

/* WordPress admin color scheme compatibility */
.admin-color-fresh .sortable-item.ui-sortable-placeholder {
    border-color: #72aee6;
    background: #f0f6fc;
}

.admin-color-light .sortable-item.ui-sortable-placeholder {
    border-color: #e5a818;
    background: #fef8e7;
}

.admin-color-modern .sortable-item.ui-sortable-placeholder {
    border-color: #3858e9;
    background: #f0f2ff;
}

.admin-color-blue .sortable-item.ui-sortable-placeholder {
    border-color: #096484;
    background: #e7f3f6;
}

.admin-color-coffee .sortable-item.ui-sortable-placeholder {
    border-color: #c7a589;
    background: #f7f3f0;
}

.admin-color-ectoplasm .sortable-item.ui-sortable-placeholder {
    border-color: #a3b745;
    background: #f2f5e7;
}

.admin-color-midnight .sortable-item.ui-sortable-placeholder {
    border-color: #e14d43;
    background: #fdf0ef;
}

.admin-color-ocean .sortable-item.ui-sortable-placeholder {
    border-color: #9ebaa0;
    background: #f0f5f0;
}

.admin-color-sunrise .sortable-item.ui-sortable-placeholder {
    border-color: #dd823b;
    background: #fdf4ef;
}
