/* Blog82AI Import Settings Component Styles */
.blog82ai-import-settings {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin: 20px 0;
}

/* Page header styling */
.blog82ai-import-settings .blog82ai-page-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
    border-bottom: 1px solid #e1e1e1;
    padding-bottom: 15px;
}

.blog82ai-import-settings .blog82ai-page-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #23282d;
}

.blog82ai-import-settings .blog82ai-page-header p {
    margin: 5px 0 0;
    color: #666;
    font-size: 14px;
}

/* Settings Form */
.blog82ai-import-settings-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Settings Sections */
.blog82ai-settings-section {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.blog82ai-settings-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #23282d;
}

/* Form Layout */
.blog82ai-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.blog82ai-form-row:last-child {
    margin-bottom: 0;
}

.blog82ai-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.blog82ai-form-group label {
    font-weight: 500;
    color: #1d2327;
    font-size: 14px;
    line-height: 1.4;
}

.blog82ai-form-group small {
    color: #646970;
    font-size: 12px;
    line-height: 1.3;
    margin-top: 4px;
}

/* Form Controls */
.blog82ai-form-group input[type="text"],
.blog82ai-form-group input[type="email"],
.blog82ai-form-group input[type="number"],
.blog82ai-form-group select,
.blog82ai-form-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.4;
    background: #fff;
    transition: border-color 0.2s ease;
}

.blog82ai-form-group input[type="text"]:focus,
.blog82ai-form-group input[type="email"]:focus,
.blog82ai-form-group input[type="number"]:focus,
.blog82ai-form-group select:focus,
.blog82ai-form-group textarea:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

.blog82ai-form-group textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

/* Checkbox Styling */
.blog82ai-form-group input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.1);
}

.blog82ai-form-group label input[type="checkbox"] {
    margin-right: 6px;
}

.blog82ai-checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 8px;
}

.blog82ai-checkbox-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
    font-size: 13px;
    color: #1d2327;
    padding: 6px 0;
}

.blog82ai-checkbox-group input[type="checkbox"] {
    margin-right: 6px;
    margin-top: 0;
}

/* Full Width Form Groups */
.blog82ai-settings-section > .blog82ai-form-group {
    margin-bottom: 20px;
}

.blog82ai-settings-section > .blog82ai-form-group:last-child {
    margin-bottom: 0;
}

/* Form Actions */
.blog82ai-form-actions {
    background: #f6f7f7;
    border: 1px solid #c3c4c7;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    align-items: center;
    margin-top: 20px;
}

.blog82ai-form-actions .button {
    padding: 8px 16px;
    font-size: 14px;
    line-height: 1.4;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.blog82ai-form-actions .button:not(.button-primary) {
    background: #f6f7f7;
    border-color: #c3c4c7;
    color: #2c3338;
}

.blog82ai-form-actions .button:not(.button-primary):hover {
    background: #f0f0f1;
    border-color: #8c8f94;
}

.blog82ai-form-actions .button-primary {
    background: #2271b1;
    border-color: #2271b1;
    color: #fff;
    font-weight: 500;
}

.blog82ai-form-actions .button-primary:hover {
    background: #135e96;
    border-color: #135e96;
}

.blog82ai-form-actions .button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Settings Import/Export */
.blog82ai-settings-io {
    margin-top: 30px;
    padding: 20px;
    background: #fff8dc;
    border: 1px solid #e6cc00;
    border-radius: 8px;
}

.blog82ai-io-section h4 {
    margin: 0 0 15px 0;
    color: #1d2327;
    font-size: 16px;
    font-weight: 600;
}

.blog82ai-io-section textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    font-family: monospace;
    font-size: 13px;
    resize: vertical;
    margin-bottom: 12px;
}

.blog82ai-io-section .button {
    padding: 8px 16px;
    font-size: 14px;
    background: #2271b1;
    border: 1px solid #2271b1;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.blog82ai-io-section .button:hover {
    background: #135e96;
    border-color: #135e96;
}

/* Notifications */
.blog82ai-notification {
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.4;
}

.blog82ai-notification-message {
    flex: 1;
}

.blog82ai-notification-close {
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.blog82ai-notification-close:hover {
    opacity: 1;
}

/* Loading States */
.blog82ai-form-actions .button[disabled] {
    position: relative;
    overflow: hidden;
}

.blog82ai-form-actions .button[disabled]::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: blog82ai-loading 1.5s infinite;
}

@keyframes blog82ai-loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .blog82ai-import-settings {
        margin: 0 10px;
        padding: 15px;
    }
    
    .blog82ai-form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .blog82ai-checkbox-group {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

@media screen and (max-width: 768px) {
    .blog82ai-import-settings {
        margin: 0 5px;
        padding: 12px;
    }
    
    .blog82ai-page-header h2 {
        font-size: 20px;
    }
    
    .blog82ai-settings-section {
        padding: 20px 15px;
    }
    
    .blog82ai-settings-section h3 {
        font-size: 16px;
    }
    
    .blog82ai-form-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .blog82ai-form-actions .button {
        width: 100%;
        text-align: center;
    }
}

@media screen and (max-width: 480px) {
    .blog82ai-import-settings {
        margin: 0;
        padding: 10px;
        border-radius: 0;
    }
    
    .blog82ai-settings-section {
        padding: 15px 10px;
        margin-bottom: 15px;
    }
    
    .blog82ai-form-group {
        gap: 4px;
    }
    
    .blog82ai-form-group label {
        font-size: 13px;
    }
    
    .blog82ai-form-group small {
        font-size: 11px;
    }
    
    .blog82ai-form-group input,
    .blog82ai-form-group select,
    .blog82ai-form-group textarea {
        padding: 6px 10px;
        font-size: 13px;
    }
}

/* Print Styles */
@media print {
    .blog82ai-form-actions,
    .blog82ai-settings-io {
        display: none;
    }
    
    .blog82ai-import-settings {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .blog82ai-settings-section {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .blog82ai-settings-section {
        border: 2px solid #000;
    }
    
    .blog82ai-form-group input,
    .blog82ai-form-group select,
    .blog82ai-form-group textarea {
        border: 2px solid #000;
    }
    
    .blog82ai-form-actions .button {
        border: 2px solid #000;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .blog82ai-form-group input,
    .blog82ai-form-group select,
    .blog82ai-form-group textarea,
    .blog82ai-form-actions .button {
        transition: none;
    }
    
    @keyframes blog82ai-loading {
        0%, 100% { left: -100%; }
    }
}

/* Focus Indicators for Accessibility */
.blog82ai-form-group input:focus-visible,
.blog82ai-form-group select:focus-visible,
.blog82ai-form-group textarea:focus-visible,
.blog82ai-form-actions .button:focus-visible {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .blog82ai-import-settings {
        background: #1e1e1e;
        color: #e0e0e0;
    }
    
    .blog82ai-settings-section {
        background: #2a2a2a;
        border-color: #404040;
    }
    
    .blog82ai-settings-section h3 {
        color: #e0e0e0;
        border-bottom-color: #404040;
    }
    
    .blog82ai-form-group label {
        color: #e0e0e0;
    }
    
    .blog82ai-form-group small {
        color: #b0b0b0;
    }
    
    .blog82ai-form-group input,
    .blog82ai-form-group select,
    .blog82ai-form-group textarea {
        background: #3a3a3a;
        border-color: #505050;
        color: #e0e0e0;
    }
    
    .blog82ai-form-actions {
        background: #2a2a2a;
        border-color: #404040;
    }
    
    .blog82ai-form-actions .button:not(.button-primary) {
        background: #3a3a3a;
        border-color: #505050;
        color: #e0e0e0;
    }
    
    .blog82ai-settings-io {
        background: #2a2a00;
        border-color: #666600;
    }
}
