/* ============================================
   AutoMeta AI - Professional Admin Stylesheet
   Version 1.0.1
   ============================================ */

/* Root Color Variables */
:root {
    --color-primary: #3b82f6;
    --color-primary-dark: #2563eb;
    --color-primary-light: #eff6ff;
    --color-border: #e2e8f0;
    --color-text: #1e293b;
    --color-text-secondary: #475569;
    --color-bg: #f0f2f5;
    --color-success: #15803d;
    --color-success-bg: #dcfce7;
    --color-error: #b91c1c;
    --color-error-bg: #fee2e2;
}

body { 
    background: var(--color-bg);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--color-text);
}
.auraseo-wrapper { 
    display: flex; 
    min-height: 85vh; 
    background: #fff; 
    margin: 25px 20px 0 0; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.05); 
    border-radius: 8px; 
    overflow: hidden;
}

/* Sidebar Navigation */
.auraseo-sidebar { 
    width: 260px; 
    background: #1e293b; 
    color: #fff; 
    flex-shrink: 0; 
    padding-top: 30px;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.auraseo-nav-item { 
    display: flex; 
    align-items: center; 
    padding: 15px 25px; 
    color: #94a3b8; 
    text-decoration: none; 
    font-weight: 500; 
    font-size: 14px; 
    transition: all 0.3s ease; 
    border-left: 4px solid transparent;
    cursor: pointer;
}

.auraseo-nav-item:hover { 
    background: #334155; 
    color: #fff;
    padding-left: 30px;
}

.auraseo-nav-item.active { 
    background: linear-gradient(90deg, rgba(59,130,246,0.1) 0%, rgba(30,41,59,0) 100%);
    color: #fff; 
    border-left-color: var(--color-primary);
}

.auraseo-nav-icon { 
    margin-right: 12px; 
    font-size: 18px;
}

/* Content Area */
.auraseo-content { 
    flex: 1; 
    padding: 40px; 
    background: #fff; 
    overflow-y: auto;
}

.auraseo-section { 
    display: none; 
    animation: fadeIn 0.4s ease;
}

.auraseo-section.active { 
    display: block;
}

@keyframes fadeIn { 
    from { 
        opacity: 0; 
        transform: translateY(10px); 
    } 
    to { 
        opacity: 1; 
        transform: translateY(0); 
    } 
}

/* Page Title */
h2.auraseo-title { 
    font-size: 24px; 
    margin-bottom: 40px; 
    color: var(--color-text);
    font-weight: 700; 
    border-bottom: 2px solid var(--color-border);
    padding-bottom: 15px; 
    text-align: center;
}

/* Cards & Input Fields */
.auraseo-card { 
    background: #fff; 
    border: 1px solid var(--color-border);
    border-radius: 8px; 
    padding: 25px; 
    margin-bottom: 25px; 
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s ease;
}

.auraseo-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.auraseo-blue-box { 
    background: linear-gradient(135deg, var(--color-primary-light) 0%, #dbeafe 100%);
    border: 1px solid #bfdbfe; 
    padding: 20px; 
    border-radius: 8px; 
    margin-bottom: 25px;
}

.auraseo-input { 
    width: 100%; 
    padding: 15px !important; 
    border: 1px solid var(--color-border);
    border-radius: 6px; 
    margin-top: 8px; 
    margin-bottom: 15px; 
    font-size: 14px; 
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.auraseo-input:focus {
    border-color: var(--color-primary);
    outline: none;
}

/* Button Styles */
.auraseo-btn { 
    display: inline-block; 
    text-decoration: none; 
    font-size: 14px; 
    font-weight: 600; 
    padding: 10px 20px; 
    cursor: pointer; 
    border: none; 
    border-radius: 6px; 
    transition: all 0.2s ease;
}

.auraseo-btn:active {
    transform: scale(0.98);
}

.auraseo-btn-primary { 
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: #fff;
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.2);
}

.auraseo-btn-primary:hover { 
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, #1d4ed8 100%);
    color: #fff;
    box-shadow: 0 6px 12px rgba(59, 130, 246, 0.3);
}

.auraseo-btn-secondary { 
    background: #fff; 
    color: var(--color-text-secondary);
    border: 1px solid var(--color-border);
}

.auraseo-btn-secondary:hover {
    background: #f8fafc;
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* Refetch Button Styling */
.auraseo-btn-refetch { 
    margin-left: 10px; 
    padding-left: 50px !important;
    padding-right: 50px !important;
    padding-top: 8px;
    padding-bottom: 8px;
    background: #f1f5f9; 
    color: var(--color-text-secondary);
    border: 1px solid var(--color-border);
    border-radius: 4px; 
    cursor: pointer; 
    font-weight: 600;
    transition: all 0.2s ease;
}

.auraseo-btn-refetch:hover {
    background: #e2e8f0;
    border-color: var(--color-primary);
}

/* Full Width Buttons */
.auraseo-btn-full { 
    display: block; 
    width: 100%; 
    text-align: center; 
    font-size: 16px; 
    padding: 15px;
}

.auraseo-btn-block { 
    display: block; 
    width: fit-content; 
    margin: 15px auto; 
    text-align: center;
}

/* Provider Selection */
.auraseo-radio-group { display: flex; gap: 20px; justify-content: center; margin-bottom: 25px; }
.provider-label { cursor: pointer; position: relative; }
.provider-label input { display: none; }
.provider-text { display: inline-flex; align-items: center; justify-content: center; padding: 20px 60px; border: 2px solid #e2e8f0; border-radius: 8px; font-weight: 600; color: #64748b; transition: all 0.3s; font-size: 16px; min-width: 220px; }
.provider-text .dashicons { margin-right: 10px; font-size: 24px; width: 24px; height: 24px; }
.provider-label input:checked + .provider-text { border-color: #3b82f6; color: #3b82f6; background: #eff6ff; }
.provider-text.auraseo-connected { animation: glow 1.5s infinite alternate; border-color: #3b82f6; box-shadow: 0 0 10px rgba(59, 130, 246, 0.5); background: #eff6ff; color: #3b82f6; }
@keyframes glow { from { box-shadow: 0 0 5px #bfdbfe; } to { box-shadow: 0 0 15px #60a5fa, 0 0 5px #3b82f6; } }

/* Tooltip Styles */
.auraseo-tooltip-wrapper { position: relative; display: inline-flex; align-items: center; }
.auraseo-tooltip-icon { margin-left: 10px; color: #3b82f6; cursor: help; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 50%; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; font-size: 14px; transition: all 0.2s; }
.auraseo-tooltip-icon:hover { background: #3b82f6; color: #fff; transform: scale(1.1); }
.auraseo-glass-tooltip { visibility: hidden; opacity: 0; position: absolute; bottom: 140%; left: 50%; transform: translateX(-50%) translateY(10px); width: 320px; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.6); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15); border-radius: 12px; padding: 18px; z-index: 99999; transition: all 0.3s ease; pointer-events: none; text-align: left; color: #475569; line-height: 1.6; }
.auraseo-glass-tooltip::after { content: ""; position: absolute; top: 100%; left: 50%; margin-left: -8px; border-width: 8px; border-style: solid; border-color: rgba(255,255,255,0.95) transparent transparent transparent; }
.auraseo-tooltip-icon:hover + .auraseo-glass-tooltip, .auraseo-tooltip-icon:focus + .auraseo-glass-tooltip { visibility: visible; opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.auraseo-glass-tooltip h4 { margin: 0 0 10px; font-size: 14px; color: #3b82f6; border-bottom: 1px solid #e2e8f0; padding-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 700; }
.auraseo-glass-tooltip p { font-size: 13px; color: #475569; margin: 0; }

/* Documentation Styling */
.doc-card { transition: transform 0.2s; border-top: 3px solid transparent; padding: 40px; }
.doc-card:hover { transform: translateY(-3px); }
.doc-card:first-child { border-top-color: #3b82f6; }
.doc-card:nth-child(2) { border-top-color: #10a37f; }
.auraseo-badge { font-size: 10px; padding: 2px 8px; border-radius: 12px; margin-left: auto; text-transform: uppercase; letter-spacing: 0.5px; background: #dcfce7; color: #166534; }
.auraseo-badge.paid { background: #fef9c3; color: #854d0e; }
.auraseo-step-list { list-style: none; padding: 0; margin: 0; }
.auraseo-step-list li { display: flex; margin-bottom: 12px; align-items: flex-start; }
.step-num { background: #f1f5f9; color: #64748b; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 13px; margin-right: 15px; flex-shrink: 0; }
.step-content { font-size: 14px; color: #475569; line-height: 1.4; }
.step-content strong { color: #1e293b; display: inline-block; margin-right: 5px; }

/* Table */
.auraseo-table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden; }
.auraseo-table th { background: #f8fafc; text-align: left; padding: 15px; font-weight: 700; color: #475569; border-bottom: 1px solid #e2e8f0; font-size: 13px; text-transform: uppercase; }
.auraseo-table td { padding: 15px; border-bottom: 1px solid #e2e8f0; vertical-align: top; background: #fff; }
.auraseo-textarea { width: 100%; font-size: 13px; border: 1px solid #cbd5e1; border-radius: 4px; padding: 8px; resize: vertical; }
.auraseo-status-badge { display: inline-block; padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: bold; text-transform: uppercase; }

/* UPDATED: Slow Blinking Animation (2.5s) */
@keyframes auraseo-blink-anim {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

.auraseo-blink {
    animation: auraseo-blink-anim 2.5s infinite; /* ধীর গতির এনিমেশন */
    color: #d63638; /* Warning Red */
    font-weight: bold;
}

