/* Smart Spam Cleaner - Admin Styles */

body.toplevel_page_smart-spam-cleaner,
body.smart-spam-cleaner_page_smart-spam-cleaner-settings {
    background: #f5f6fa !important;
}

.wwssc-admin-page {
    max-width: 1000px;
    margin: 32px auto 0 auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    padding: 40px 36px 32px 36px;
    border: 1px solid #e9ecef;
}

@media (max-width: 900px) {
    .wwssc-admin-page {
        padding: 24px 16px 20px 16px;
        margin: 16px 8px 0 8px;
    }
}

/* --- HEADER --- */
.wwssc-header {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 36px 44px;
    border-radius: 16px;
    margin-bottom: 40px;
    box-shadow: 0 8px 32px rgba(102,126,234,0.15);
    gap: 28px;
    position: relative;
    overflow: hidden;
}

.wwssc-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, transparent 50%, rgba(255,255,255,0.05) 100%);
    pointer-events: none;
}
.wwssc-header .dashicons {
    font-size: 56px;
    width: 56px;
    height: 56px;
    margin-right: 16px;
}
.wwssc-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 8px 0;
}
.wwssc-header p {
    margin: 0;
    font-size: 1.1rem;
    opacity: 0.92;
}

/* --- NOTICE --- */
.wwssc-notice.wwssc-warning {
    background: #fffbe6;
    border-left: 6px solid #ffc107;
    color: #856404;
    padding: 18px 28px;
    border-radius: 8px;
    margin-bottom: 32px;
    font-size: 1.08rem;
    display: flex;
    align-items: center;
    gap: 12px;
}
.wwssc-notice .dashicons {
    font-size: 24px;
    color: #ffc107;
}
.wwssc-notice strong {
    margin-right: 6px;
}

/* --- CARD LAYOUT --- */
.wwssc-card {
    background: #fff;
    border-radius: 16px;
    padding: 36px 32px 28px 32px;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid #e9ecef;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.wwssc-card:hover {
    box-shadow: 0 6px 28px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}
.wwssc-card h2 {
    font-size: 1.35rem;
    color: #5a32ea;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.5px;
}
.wwssc-card:not(:last-child) {
    margin-bottom: 36px;
}

/* --- SECTION TITLES --- */
.wwssc-filter-section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 22px 20px 18px 20px;
    border: 1px solid #e9ecef;
    margin-bottom: 24px;
    box-shadow: 0 1px 6px rgba(102,126,234,0.04);
}
.wwssc-filter-section h3 {
    color: #764ba2;
    font-size: 1.13rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 0.2px;
}
.wwssc-filter-section h4 {
    color: #667eea;
    font-size: 1.01rem;
    font-weight: 600;
    margin-bottom: 8px;
}
.wwssc-filter-section p {
    color: #6c757d;
    font-size: 1rem;
    margin-bottom: 12px;
}

/* --- BUTTONS --- */
.wwssc-actions .button.button-primary.button-hero {
    font-size: 1.18rem;
    padding: 18px 44px;
    border-radius: 10px;
    font-weight: 700;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border: none;
    box-shadow: 0 2px 10px rgba(102,126,234,0.10);
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    transition: background 0.2s, box-shadow 0.2s;
}
.wwssc-actions .button.button-primary.button-hero:hover {
    background: linear-gradient(90deg, #764ba2 0%, #667eea 100%);
    box-shadow: 0 4px 18px rgba(102,126,234,0.18);
}

/* --- CHECKBOXES --- */
.wwssc-checkbox input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.25);
}
.wwssc-checkbox-label {
    font-size: 1.08rem;
    font-weight: 500;
    color: #333;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* --- DESCRIPTION --- */
.wwssc-description {
    margin: 0 0 0 28px;
    color: #6c757d;
    font-size: 1rem;
    line-height: 1.6;
}

/* --- FILTER SUMMARY --- */
.wwssc-filter-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 18px;
}

/* Keyword Lists */
.wwssc-keyword-list, .wwssc-domain-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-bottom: 12px;
}
.wwssc-keyword-item, .wwssc-domain-item {
    display: flex;
    align-items: center;
    background: #f1f3fa;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(102,126,234,0.08);
    padding: 6px 10px;
    margin-bottom: 0;
    gap: 8px;
    border: 1px solid #e0e6f7;
    transition: box-shadow 0.2s;
}
.wwssc-keyword-item input[type="text"], .wwssc-domain-item input[type="text"] {
    border: none;
    background: transparent;
    font-size: 1rem;
    color: #333;
    padding: 4px 2px;
    min-width: 90px;
    outline: none;
    border-bottom: 2px solid #e0e6f7;
    border-radius: 0;
    transition: border-color 0.2s;
}
.wwssc-keyword-item input[type="text"]:focus, .wwssc-domain-item input[type="text"]:focus {
    border-bottom: 2px solid #764ba2;
    background: #f8f9fa;
}
.wwssc-remove-keyword, .wwssc-remove-domain {
    background: #e83e8c;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s;
    margin-left: 4px;
}
.wwssc-remove-keyword:hover, .wwssc-remove-domain:hover {
    background: #c82333;
}
.wwssc-add-keyword, .wwssc-add-domain {
    background: #28a745;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 8px 18px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    margin-bottom: 0;
    transition: background 0.2s;
    box-shadow: 0 1px 4px rgba(40,167,69,0.08);
}
.wwssc-add-keyword:hover, .wwssc-add-domain:hover {
    background: #218838;
}

/* Domain Filters */
.wwssc-domain-filters {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}
.wwssc-domain-section {
    flex: 1 1 220px;
    background: #f4f7fd;
    border-radius: 8px;
    border: 1px solid #e0e6f7;
    padding: 14px 12px 10px 12px;
    margin-bottom: 0;
    box-shadow: 0 1px 4px rgba(102,126,234,0.04);
}

/* Form Elements */
.wwssc-filter-section select, .wwssc-filter-section input[type="number"] {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #e0e6f7;
    border-radius: 6px;
    font-size: 1.05rem;
    background: #f8f9fa;
    margin-bottom: 8px;
    transition: border-color 0.2s;
}
.wwssc-filter-section select:focus, .wwssc-filter-section input[type="number"]:focus {
    border-color: #764ba2;
    outline: none;
}
.wwssc-filter-section .description {
    margin-top: 5px;
    font-size: 0.98rem;
    color: #6c757d;
    font-style: italic;
}

/* Actions */
.wwssc-actions {
    text-align: center;
    margin-top: 30px;
}

.wwssc-actions .button {
    display: inline-flex;
    align-items: center;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.wwssc-actions .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.wwssc-actions .button .dashicons {
    margin-right: 8px;
}

/* How It Works */
.wwssc-how-it-works {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.wwssc-step {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.wwssc-step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    margin-right: 15px;
    flex-shrink: 0;
}

.wwssc-step-content h3 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.wwssc-step-content p {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
    line-height: 1.5;
}

/* Code blocks */
.wwssc-card code {
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 13px;
    color: #e83e8c;
    border: 1px solid #e9ecef;
}

/* Loading States */
.wwssc-loading {
    opacity: 0.6;
    pointer-events: none;
}

.wwssc-loading .button {
    position: relative;
}

.wwssc-loading .button:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: wwssc-spin 1s linear infinite;
}

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

/* Success/Error Messages */
.wwssc-message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid;
}

.wwssc-success {
    background-color: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.wwssc-error {
    background-color: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

/* Form Styles */
#wwssc-cleanup-form,
#wwssc-settings-form {
    margin: 0;
}

#wwssc-cleanup-form .wwssc-option-group:last-child {
    margin-bottom: 0;
}

/* Settings Form Specific */
#wwssc-settings-form .wwssc-filter-section:last-child {
    margin-bottom: 0;
}

/* Animation for new items */
.wwssc-keyword-item,
.wwssc-domain-item {
    animation: wwssc-slide-in 0.3s ease-out;
}

@keyframes wwssc-slide-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Progress Bar */
.wwssc-progress {
    background: #fff;
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 32px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
}

.wwssc-progress-bar {
    width: 100%;
    height: 12px;
    background: #e9ecef;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 12px;
}

.wwssc-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 6px;
    width: 0%;
    transition: width 0.3s ease;
}

.wwssc-progress-text {
    text-align: center;
    font-weight: 600;
    color: #5a32ea;
    font-size: 1.05rem;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .wwssc-header {
        flex-direction: column;
        text-align: center;
        padding: 24px 20px;
        gap: 16px;
    }
    
    .wwssc-header .dashicons {
        font-size: 48px;
        width: 48px;
        height: 48px;
        margin-right: 0;
    }
    
    .wwssc-header h1 {
        font-size: 1.8rem;
    }
    
    .wwssc-filter-summary {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .wwssc-domain-filters {
        flex-direction: column;
    }
    
    .wwssc-how-it-works {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .wwssc-actions .button.button-primary.button-hero {
        font-size: 1.1rem;
        padding: 16px 32px;
    }
}

/* Additional improvements for better UX */
.wwssc-option-group {
    margin-bottom: 24px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.wwssc-option-group:last-child {
    margin-bottom: 0;
}

.wwssc-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.wwssc-checkbox input[type="checkbox"] {
    margin: 0;
    transform: scale(1.2);
    margin-top: 2px;
}

.wwssc-checkbox-label {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.wwssc-checkbox-label .dashicons {
    color: #5a32ea;
}

/* Better button styling */
.button.wwssc-remove-keyword,
.button.wwssc-remove-domain {
    background: #dc3545;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s;
    margin-left: 8px;
}

.button.wwssc-remove-keyword:hover,
.button.wwssc-remove-domain:hover {
    background: #c82333;
}

.button.wwssc-add-keyword,
.button.wwssc-add-domain {
    background: #28a745;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 12px;
    transition: background 0.2s;
    box-shadow: 0 2px 8px rgba(40,167,69,0.2);
}

.button.wwssc-add-keyword:hover,
.button.wwssc-add-domain:hover {
    background: #218838;
    box-shadow: 0 4px 12px rgba(40,167,69,0.3);
}

/* Log Status Styling */
.wwssc-log-status {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
    border: 1px solid #e9ecef;
}

.wwssc-log-status ul {
    margin: 8px 0 0 0;
    padding-left: 20px;
}

.wwssc-log-status li {
    margin-bottom: 6px;
    font-size: 0.95rem;
    color: #495057;
}

.wwssc-log-preview {
    margin-top: 20px;
}

.wwssc-log-preview h4 {
    color: #5a32ea;
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.wwssc-log-content {
    background: #2d3748;
    border-radius: 6px;
    padding: 16px;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #4a5568;
}

.wwssc-log-content pre {
    color: #e2e8f0;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Settings Page Specific Styles */
.wwssc-notice.wwssc-info {
    background: #e3f2fd;
    border-left: 6px solid #2196f3;
    color: #0d47a1;
    padding: 18px 28px;
    border-radius: 8px;
    margin-bottom: 32px;
    font-size: 1.08rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.wwssc-notice.wwssc-info .dashicons {
    font-size: 24px;
    color: #2196f3;
}

.wwssc-card h2 .dashicons {
    margin-right: 8px;
    color: #5a32ea;
}

.wwssc-description {
    color: #6c757d;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.wwssc-select {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #e0e6f7;
    border-radius: 6px;
    font-size: 1.05rem;
    background: #f8f9fa;
    margin-bottom: 8px;
    transition: border-color 0.2s;
}

.wwssc-select:focus {
    border-color: #764ba2;
    outline: none;
    box-shadow: 0 0 0 3px rgba(118, 75, 162, 0.1);
}

.wwssc-input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #e0e6f7;
    border-radius: 6px;
    font-size: 1.05rem;
    background: #f8f9fa;
    margin-bottom: 8px;
    transition: border-color 0.2s;
}

.wwssc-input:focus {
    border-color: #764ba2;
    outline: none;
    box-shadow: 0 0 0 3px rgba(118, 75, 162, 0.1);
}

.wwssc-domain-section h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #5a32ea;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.wwssc-domain-section h4 .dashicons {
    color: #5a32ea;
}

.wwssc-domain-section .wwssc-description {
    margin-bottom: 12px;
    font-size: 0.95rem;
}

/* Reset button styling */
#wwssc-reset-settings {
    background: #6c757d;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.2);
}

#wwssc-reset-settings:hover {
    background: #5a6268;
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

#wwssc-reset-settings .dashicons {
    margin-right: 6px;
}

/* Enhanced button styling for add buttons */
.wwssc-add-keyword,
.wwssc-add-domain {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #28a745;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 12px;
    transition: background 0.2s;
    box-shadow: 0 2px 8px rgba(40,167,69,0.2);
}

.wwssc-add-keyword:hover,
.wwssc-add-domain:hover {
    background: #218838;
    box-shadow: 0 4px 12px rgba(40,167,69,0.3);
}

.wwssc-add-keyword .dashicons,
.wwssc-add-domain .dashicons {
    font-size: 16px;
} 

/* Hide notices that appear inside or after the plugin title/header */
.wwssc-title .notice,
.wwssc-title .notice-info,
.wwssc-title .update-nag,
.wwssc-title .elementor-message,
.wwssc-title .qodef-admin-notice,
.wwssc-title .plugin-update-message,
.wwssc-title .qi-addons-for-elementor-review-notice {
    display: none !important;
}

/* Also hide notices that appear immediately after the header */
.wwssc-header + .notice,
.wwssc-header + .notice-info,
.wwssc-header + .update-nag,
.wwssc-header + .elementor-message,
.wwssc-header + .qodef-admin-notice,
.wwssc-header + .plugin-update-message,
.wwssc-header + .qi-addons-for-elementor-review-notice {
    display: none !important;
} 