/* Deep SEO Fixer - Admin Styles */

.dsf-settings-wrap {
    margin: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
}

.dsf-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 20px;
    margin-top: 20px;
}

@media (max-width: 1200px) {
    .dsf-container {
        grid-template-columns: 1fr;
    }
}

/* Cards */
.dsf-card {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.dsf-card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dsf-card-header h2,
.dsf-card-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #fff;
}

.dsf-card-header p {
    margin: 8px 0 0;
    opacity: 0.9;
    font-size: 14px;
}

.dsf-card-body {
    padding: 25px;
}

.dsf-card-footer {
    padding: 20px 25px;
    background: #f9f9f9;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Sections */
.dsf-section {
    margin-bottom: 30px;
}

.dsf-section:last-child {
    margin-bottom: 0;
}

.dsf-section-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 20px;
    color: #1d2327;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f1;
}

/* Options */
.dsf-option {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 18px;
    margin-bottom: 12px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.dsf-option:hover {
    background: #f5f5f5;
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.dsf-option:last-child {
    margin-bottom: 0;
}

.dsf-option-info {
    flex: 1;
}

.dsf-option-info strong {
    display: block;
    font-size: 15px;
    color: #1d2327;
    margin-bottom: 5px;
}

.dsf-option-info p {
    margin: 0;
    font-size: 13px;
    color: #646970;
    line-height: 1.5;
}

/* Toggle Switch */
.dsf-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    flex-shrink: 0;
    margin-top: 2px;
}

.dsf-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.dsf-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 26px;
}

.dsf-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.dsf-switch input:checked + .dsf-slider {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.dsf-switch input:focus + .dsf-slider {
    box-shadow: 0 0 1px #667eea;
}

.dsf-switch input:checked + .dsf-slider:before {
    transform: translateX(24px);
}

/* Buttons */
.dsf-card-footer .button {
    padding: 8px 20px;
    height: auto;
    font-size: 14px;
}

.dsf-card-footer .button-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    text-shadow: none;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.dsf-card-footer .button-primary:hover {
    background: linear-gradient(135deg, #5568d3 0%, #6a4190 100%);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.dsf-reset-btn {
    margin-left: auto;
}

/* Sidebar */
.dsf-sidebar .dsf-card {
    margin-bottom: 20px;
}

.dsf-sidebar .dsf-card:last-child {
    margin-bottom: 0;
}

.dsf-sidebar .dsf-card-header h3 {
    font-size: 16px;
}

.dsf-sidebar .dsf-card-body {
    padding: 20px;
    font-size: 14px;
    line-height: 1.6;
}

.dsf-sidebar .dsf-card-body p {
    margin: 0 0 12px;
}

.dsf-sidebar .dsf-card-body p:last-child {
    margin-bottom: 0;
}

.dsf-sidebar .dsf-card-body h4 {
    margin: 15px 0 10px;
    font-size: 14px;
    color: #1d2327;
}

.dsf-sidebar .dsf-card-body ul {
    margin: 0;
    padding-right: 20px;
}

.dsf-sidebar .dsf-card-body hr {
    margin: 15px 0;
    border: none;
    border-top: 1px solid #eee;
}

/* RTL Support */
[dir="rtl"] .dsf-container,
body.rtl .dsf-container {
    direction: rtl;
}

[dir="rtl"] .dsf-option,
body.rtl .dsf-option {
    direction: rtl;
}

[dir="rtl"] .dsf-sidebar .dsf-card-body ul,
body.rtl .dsf-sidebar .dsf-card-body ul {
    padding-right: 0;
    padding-left: 20px;
}

/* Success Message */
.dsf-settings-wrap .notice {
    border-radius: 6px;
    border-left-width: 4px;
}

/* Loading State */
.dsf-option.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 782px) {
    .dsf-container {
        margin-top: 10px;
    }
    
    .dsf-card-header {
        padding: 15px 20px;
    }
    
    .dsf-card-body {
        padding: 20px;
    }
    
    .dsf-option {
        padding: 15px;
    }
    
    .dsf-card-footer {
        flex-direction: column;
        align-items: stretch;
    }
    
    .dsf-reset-btn {
        margin-left: 0;
    }
}
