/* LLMS.txt AI Generator Plugin Styles */

.llms-card {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.llms-card h2 {
    margin-top: 0;
    color: #23282d;
    font-size: 1.3em;
    border-bottom: 1px solid #e1e1e1;
    padding-bottom: 10px;
}

.llms-input-wrapper {
    margin-bottom: 15px;
}

.llms-input-wrapper label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #23282d;
}

.llms-input-wrapper input[type="text"],
.llms-input-wrapper input[type="number"],
.llms-input-wrapper textarea {
    width: 100%;
    max-width: 500px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.llms-input-wrapper textarea {
    resize: vertical;
    min-height: 100px;
}

.llms-radio-wrapper,
.llms-checkbox-wrapper {
    margin: 10px 0;
    display: flex;
    align-items: center;
}

.llms-radio-wrapper input[type="radio"],
.llms-checkbox-wrapper input[type="checkbox"] {
    margin-right: 8px;
}

.llms-radio-wrapper label,
.llms-checkbox-wrapper label {
    margin: 0;
    font-weight: normal;
    cursor: pointer;
}

.llms-button-group {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e1e1e1;
}

.llms-button {
    display: inline-block;
    padding: 10px 20px;
    margin-right: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.llms-button-primary {
    background-color: #0073aa;
    color: #fff;
}

.llms-button-primary:hover {
    background-color: #005a87;
    color: #fff;
}

.llms-button-secondary {
    background-color: #f7f7f7;
    color: #555;
    border: 1px solid #ccc;
}

.llms-button-secondary:hover {
    background-color: #fafafa;
    border-color: #999;
}

.llms-loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.llms-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: llms-spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes llms-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.llms-success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    padding: 12px 16px;
    margin: 10px 0;
}

.llms-error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 12px 16px;
    margin: 10px 0;
}

.llms-preview-section {
    margin-top: 30px;
}

.llms-preview-content {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 20px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.5;
    white-space: pre-wrap;
    max-height: 400px;
    overflow-y: auto;
}

.llms-url-display {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 15px;
    margin: 10px 0;
    font-family: monospace;
    font-size: 14px;
}

.llms-url-display a {
    color: #0073aa;
    text-decoration: none;
}

.llms-url-display a:hover {
    text-decoration: underline;
}

.post-types-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.post-types-selection {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 15px;
}

.post-types-selection h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #23282d;
}

.post-type-section {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 15px;
}

.post-type-section h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #23282d;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

.post-type-section .llms-checkbox-wrapper {
    margin: 5px 0;
    font-size: 13px;
}

.post-type-section .llms-checkbox-wrapper small {
    color: #666;
    font-size: 11px;
}

/* Multilingual language selection */
.llms-language-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
}

.llms-language-checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    cursor: pointer;
    padding: 4px 0;
}

.llms-language-checkbox-label code {
    font-size: 11px;
    color: #666;
}

.llms-primary-badge {
    display: inline-block;
    background: #0073aa;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Document items repeater */
.llms-document-item {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
}

.llms-document-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #f1f1f1;
    border-bottom: 1px solid #ddd;
    border-radius: 4px 4px 0 0;
    cursor: default;
}

.llms-document-item-title {
    font-weight: 600;
    color: #23282d;
    font-size: 13px;
}

.llms-document-remove {
    color: #a00;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
    border: none;
    background: none;
    padding: 0 4px;
}

.llms-document-remove:hover {
    color: #dc3232;
}

.llms-document-item-body {
    padding: 15px;
}

.llms-document-field {
    margin-bottom: 12px;
}

.llms-document-field:last-child {
    margin-bottom: 0;
}

.llms-document-field label {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
    font-size: 13px;
    color: #23282d;
}

.llms-document-field input[type="text"],
.llms-document-field input[type="url"] {
    width: 100%;
    max-width: 500px;
}

.llms-document-url-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.llms-document-url-row input[type="url"] {
    flex: 1;
}

.llms-doc-media-btn {
    white-space: nowrap;
}

/* Responsive design */
@media (max-width: 768px) {
    .llms-card {
        padding: 15px;
    }
    
    .llms-button {
        display: block;
        margin-bottom: 10px;
        margin-right: 0;
        text-align: center;
    }
    
    .post-types-container {
        flex-direction: column;
    }
    
    .llms-input-wrapper input[type="text"],
    .llms-input-wrapper input[type="number"],
    .llms-input-wrapper textarea {
        max-width: 100%;
    }

    .llms-document-url-row {
        flex-direction: column;
    }

    .llms-document-field input[type="text"],
    .llms-document-field input[type="url"] {
        max-width: 100%;
    }
}

/* Accessibility improvements */
.llms-button:focus,
input:focus,
textarea:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

.llms-checkbox-wrapper input[type="checkbox"]:focus + label,
.llms-radio-wrapper input[type="radio"]:focus + label {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}