/**
 * AI SEO Optimizer Styles
 * Professional dashboard for SEO analysis and optimization
 */

/* ===== SEO OPTIMIZER CONTAINER ===== */
.ai-seo-optimizer {
    position: fixed;
    bottom: 180px;
    right: 20px;
    z-index: 9998;
    font-family: 'Inter', sans-serif;
}

/* ===== SEO TOGGLE BUTTON ===== */
.seo-toggle {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(34, 197, 94, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.seo-toggle:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 12px 40px rgba(34, 197, 94, 0.4);
}

.seo-toggle:active {
    transform: translateY(0) scale(0.98);
}

.seo-icon {
    position: relative;
    color: white;
    font-size: 24px;
    transition: transform 0.3s ease;
}

.seo-toggle:hover .seo-icon {
    transform: scale(1.1);
}

.seo-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--gold-ochre);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.seo-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.3);
    animation: seoPulse 2s infinite;
    pointer-events: none;
}

@keyframes seoPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* ===== SEO DASHBOARD ===== */
.seo-dashboard {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 420px;
    max-height: 80vh;
    background: white;
    border-radius: 16px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.15);
    transform: translateY(20px) scale(0.9);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(34, 197, 94, 0.1);
    overflow: hidden;
}

.ai-seo-optimizer.seo-open .seo-dashboard {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
}

.ai-seo-optimizer.seo-open .seo-toggle {
    transform: rotate(45deg);
}

/* ===== SEO HEADER ===== */
.seo-header {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 16px 16px 0 0;
}

.seo-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.seo-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.seo-info h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.seo-status {
    font-size: 12px;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 4px;
}

.seo-close {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.seo-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ===== SEO TABS ===== */
.seo-tabs {
    display: flex;
    background: var(--warm-beige);
    border-bottom: 1px solid #e5e7eb;
}

.seo-tab {
    flex: 1;
    padding: 12px 8px;
    border: none;
    background: transparent;
    color: var(--forest-green);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.seo-tab.active {
    background: white;
    border-bottom-color: #22c55e;
    color: #22c55e;
    font-weight: 600;
}

.seo-tab:hover:not(.active) {
    background: rgba(34, 197, 94, 0.1);
}

/* ===== TAB CONTENT ===== */
.seo-tab-content {
    display: none;
    padding: 20px;
    overflow-y: auto;
    max-height: 60vh;
    animation: fadeInTab 0.3s ease-in-out;
}

.seo-tab-content.active {
    display: block;
}

@keyframes fadeInTab {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== SEO SCORE DISPLAY ===== */
.seo-score-display {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    align-items: center;
}

.score-circle {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: conic-gradient(var(--score-color, #ef4444) var(--score-percentage, 0%), #e5e7eb 0%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    flex-shrink: 0;
}

.score-circle::before {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
}

.score-number {
    position: relative;
    font-size: 20px;
    font-weight: 700;
    color: var(--score-color, #ef4444);
    z-index: 1;
}

.score-label {
    position: relative;
    font-size: 10px;
    color: #6b7280;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.score-breakdown {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.score-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.score-category {
    font-size: 12px;
    font-weight: 500;
    color: var(--forest-green);
    min-width: 60px;
}

.score-bar {
    flex: 1;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
}

.score-fill {
    height: 100%;
    background: #22c55e;
    border-radius: 3px;
    transition: width 0.5s ease;
    width: 0%;
}

.score-value {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    min-width: 25px;
    text-align: right;
}

/* ===== SEO SUGGESTIONS ===== */
.seo-suggestions {
    margin-bottom: 20px;
}

.seo-suggestions h5 {
    margin: 0 0 16px 0;
    color: var(--forest-green);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.suggestions-list {
    max-height: 300px;
    overflow-y: auto;
}

.suggestion-item {
    background: var(--background-light);
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.suggestion-item:hover {
    border-color: #22c55e;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.1);
}

.suggestion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.suggestion-priority {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.suggestion-priority.high {
    background: #fef2f2;
    color: #dc2626;
}

.suggestion-priority.medium {
    background: #fffbeb;
    color: #d97706;
}

.suggestion-priority.low {
    background: #f0fdf4;
    color: #16a34a;
}

.suggestion-type {
    font-size: 10px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.suggestion-item h6 {
    margin: 0 0 8px 0;
    color: var(--forest-green);
    font-size: 13px;
    font-weight: 600;
}

.suggestion-item p {
    margin: 0 0 12px 0;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.5;
}

.suggestion-actions {
    display: flex;
    gap: 8px;
}

.fix-btn,
.ignore-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.fix-btn {
    background: #22c55e;
    color: white;
}

.fix-btn:hover {
    background: #16a34a;
    transform: translateY(-1px);
}

.ignore-btn {
    background: #f3f4f6;
    color: #6b7280;
}

.ignore-btn:hover {
    background: #e5e7eb;
}

.suggestion-loading,
.suggestion-error,
.no-suggestions {
    text-align: center;
    padding: 32px 16px;
    color: #6b7280;
    font-size: 14px;
}

.suggestion-error {
    color: #dc2626;
}

.no-suggestions {
    color: #22c55e;
}

/* ===== QUICK ACTIONS ===== */
.quick-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.action-btn {
    background: var(--accent-moss);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    justify-content: center;
}

.action-btn:hover {
    background: var(--forest-green);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(11, 61, 46, 0.3);
}

/* ===== KEYWORD RESEARCH ===== */
.keyword-research {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.keyword-input {
    display: flex;
    gap: 8px;
}

.keyword-input input {
    flex: 1;
    padding: 10px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 13px;
    transition: border-color 0.3s ease;
}

.keyword-input input:focus {
    border-color: #22c55e;
    outline: none;
}

.keyword-input button {
    background: #22c55e;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.keyword-input button:hover {
    background: #16a34a;
}

.current-keywords,
.keyword-opportunities {
    background: var(--background-light);
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.current-keywords h5,
.keyword-opportunities h5 {
    margin: 0 0 12px 0;
    color: var(--forest-green);
    font-size: 13px;
}

.keyword-list,
.opportunity-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.keyword-item,
.opportunity-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 12px;
}

.keyword-item strong,
.opportunity-item strong {
    color: var(--forest-green);
}

.keyword-density {
    color: #6b7280;
    font-size: 11px;
}

.keyword-density.optimal {
    color: #22c55e;
}

.keyword-density.high {
    color: #dc2626;
}

/* ===== COMPETITOR ANALYSIS ===== */
.competitor-analysis {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.competitor-input {
    display: flex;
    gap: 8px;
}

.competitor-input input {
    flex: 1;
    padding: 10px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 13px;
    transition: border-color 0.3s ease;
}

.competitor-input input:focus {
    border-color: #22c55e;
    outline: none;
}

.competitor-input button {
    background: #22c55e;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.competitor-comparison {
    background: var(--background-light);
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

/* ===== A/B TESTING ===== */
.ab-testing {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.test-creation {
    background: var(--background-light);
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.test-creation h5 {
    margin: 0 0 16px 0;
    color: var(--forest-green);
    font-size: 14px;
}

.test-options {
    margin-bottom: 16px;
}

.test-options label {
    display: block;
    margin-bottom: 6px;
    color: var(--forest-green);
    font-weight: 500;
    font-size: 12px;
}

.test-options select {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 12px;
    background: white;
}

.test-variants {
    margin-bottom: 16px;
}

.variant-list {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 8px;
    min-height: 60px;
}

.add-variant {
    background: #f3f4f6;
    color: #6b7280;
    border: 1px dashed #d1d5db;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    width: 100%;
    transition: all 0.3s ease;
}

.add-variant:hover {
    background: #e5e7eb;
}

.start-test {
    background: #22c55e;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.start-test:hover {
    background: #16a34a;
    transform: translateY(-1px);
}

.active-tests,
.test-results {
    background: var(--background-light);
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.active-tests h5,
.test-results h5 {
    margin: 0 0 12px 0;
    color: var(--forest-green);
    font-size: 13px;
}

/* ===== TOAST NOTIFICATIONS ===== */
.seo-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #22c55e;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    z-index: 10003;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    opacity: 1;
    transition: opacity 0.3s ease;
    animation: toastSlideIn 0.3s ease-out;
}

@keyframes toastSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.seo-toast.error {
    background: #dc2626;
}

.seo-toast.info {
    background: #3b82f6;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .ai-seo-optimizer {
        bottom: 200px;
        right: 16px;
    }
    
    .seo-dashboard {
        width: calc(100vw - 32px);
        max-width: 400px;
        height: 75vh;
        bottom: 70px;
        right: 0;
    }
    
    .seo-toggle {
        width: 56px;
        height: 56px;
    }
    
    .seo-icon {
        font-size: 22px;
    }
    
    .seo-tab-content {
        padding: 16px;
        max-height: 55vh;
    }
    
    .seo-score-display {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
    }
    
    .score-breakdown {
        width: 100%;
    }
    
    .suggestion-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .suggestion-actions {
        flex-direction: column;
    }
    
    .quick-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .seo-dashboard {
        width: calc(100vw - 16px);
        height: 85vh;
        bottom: 70px;
        right: 8px;
        left: 8px;
    }
    
    .seo-tabs {
        flex-wrap: wrap;
    }
    
    .seo-tab {
        font-size: 11px;
        padding: 8px 6px;
    }
    
    .keyword-input,
    .competitor-input {
        flex-direction: column;
    }
    
    .keyword-input button,
    .competitor-input button {
        width: 100%;
    }
}

/* ===== ACCESSIBILITY ===== */
.seo-toggle:focus,
.seo-close:focus,
.seo-tab:focus,
.action-btn:focus,
.fix-btn:focus,
.ignore-btn:focus {
    outline: 3px solid #22c55e;
    outline-offset: 2px;
}

.keyword-input input:focus,
.competitor-input input:focus,
.test-options select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

/* ===== DARK MODE SUPPORT ===== */
@media (prefers-color-scheme: dark) {
    .seo-dashboard {
        background: #1f2937;
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .seo-tab-content {
        color: #e5e7eb;
    }
    
    .seo-tabs {
        background: #374151;
    }
    
    .seo-tab {
        color: #d1d5db;
    }
    
    .seo-tab.active {
        background: #1f2937;
        color: #22c55e;
    }
    
    .suggestion-item,
    .current-keywords,
    .keyword-opportunities,
    .competitor-comparison,
    .test-creation,
    .active-tests,
    .test-results {
        background: #374151;
        border-color: rgba(255, 255, 255, 0.1);
        color: #e5e7eb;
    }
    
    .keyword-input input,
    .competitor-input input,
    .test-options select {
        background: #374151;
        color: #e5e7eb;
        border-color: rgba(255, 255, 255, 0.2);
    }
    
    .score-circle::before {
        background: #1f2937;
    }
    
    .variant-list {
        background: #374151;
        border-color: rgba(255, 255, 255, 0.2);
    }
} 

/* ===== A/B TESTING NOTIFICATIONS ===== */
.ab-test-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border: 2px solid #22c55e;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    z-index: 10004;
    max-width: 350px;
    animation: slideInNotification 0.3s ease-out;
}

@keyframes slideInNotification {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification-content {
    padding: 20px;
}

.notification-content h4 {
    margin: 0 0 12px 0;
    color: #22c55e;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notification-content p {
    margin: 8px 0;
    color: #374151;
    font-size: 14px;
    line-height: 1.4;
}

.notification-content p strong {
    color: #1f2937;
}

.view-results {
    background: #22c55e;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    margin: 12px 8px 0 0;
    transition: all 0.3s ease;
}

.view-results:hover {
    background: #16a34a;
    transform: translateY(-1px);
}

.close-notification {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 18px;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.close-notification:hover {
    background: #f3f4f6;
    color: #374151;
}

/* ===== A/B TEST RESULTS MODAL ===== */
.ab-results-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10005;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: modalFadeIn 0.3s ease-out;
}

.results-modal-content {
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease-out;
}

.results-modal-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.results-modal-header h3 {
    margin: 0;
    color: #1f2937;
    font-size: 20px;
    font-weight: 600;
}

.results-modal-header .close-modal {
    background: none;
    border: none;
    font-size: 24px;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: color 0.3s ease;
}

.results-modal-header .close-modal:hover {
    color: #374151;
}

.results-modal-body {
    padding: 24px;
}

.test-summary {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
}

.test-summary h4 {
    margin: 0 0 12px 0;
    color: #1f2937;
    font-size: 16px;
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
}

.summary-stat {
    text-align: center;
}

.summary-stat .stat-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #22c55e;
    margin-bottom: 4px;
}

.summary-stat .stat-label {
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.variant-results {
    margin-bottom: 24px;
}

.variant-results h4 {
    margin: 0 0 16px 0;
    color: #1f2937;
    font-size: 16px;
}

.variant-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    position: relative;
}

.variant-item.winner {
    border-color: #22c55e;
    background: #f0fdf4;
}

.variant-item.winner::before {
    content: '🏆';
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 18px;
}

.variant-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.variant-name {
    font-weight: 600;
    color: #1f2937;
    font-size: 14px;
}

.variant-rate {
    font-size: 18px;
    font-weight: 700;
    color: #22c55e;
}

.variant-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    font-size: 12px;
    color: #6b7280;
}

.variant-metric {
    text-align: center;
}

.variant-metric .metric-value {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 2px;
}

.confidence-indicator {
    margin-top: 12px;
    padding: 8px 12px;
    background: #f3f4f6;
    border-radius: 6px;
    text-align: center;
    font-size: 12px;
}

.confidence-indicator.high {
    background: #dcfce7;
    color: #166534;
}

.confidence-indicator.medium {
    background: #fef3c7;
    color: #92400e;
}

.confidence-indicator.low {
    background: #fef2f2;
    color: #991b1b;
}

.test-recommendations {
    background: #fffbeb;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 16px;
}

.test-recommendations h4 {
    margin: 0 0 12px 0;
    color: #92400e;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.recommendations-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recommendations-list li {
    padding: 8px 0;
    border-bottom: 1px solid #fde68a;
    font-size: 13px;
    color: #92400e;
    line-height: 1.4;
}

.recommendations-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.recommendations-list li::before {
    content: '💡';
    margin-right: 8px;
}

/* ===== RESPONSIVE DESIGN FOR MODALS ===== */
@media (max-width: 768px) {
    .ab-test-notification {
        max-width: calc(100vw - 40px);
        right: 20px;
        left: 20px;
    }
    
    .ab-results-modal {
        padding: 16px;
    }
    
    .results-modal-content {
        margin: 0;
    }
    
    .results-modal-header,
    .results-modal-body {
        padding: 16px;
    }
    
    .summary-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .variant-metrics {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

/* ===== DARK MODE SUPPORT FOR A/B TESTING ===== */
@media (prefers-color-scheme: dark) {
    .ab-test-notification {
        background: #1f2937;
        border-color: #22c55e;
    }
    
    .notification-content p {
        color: #d1d5db;
    }
    
    .notification-content p strong {
        color: #f9fafb;
    }
    
    .results-modal-content {
        background: #1f2937;
        color: #e5e7eb;
    }
    
    .results-modal-header {
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .test-summary,
    .variant-item {
        background: #374151;
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .variant-item.winner {
        background: #064e3b;
        border-color: #22c55e;
    }
    
    .test-recommendations {
        background: #451a03;
        border-color: #f59e0b;
    }
} 