/**
 * Pozitif Ekip Hub - 301 Yönlendirme Sağlığı & Canlı 404 Monitörü CSS
 * Vercel / Linear Standardı (Modern Minimalist 1px Çizgiler, Sıfır Hover Float)
 */

/* KPI Metrik Kartları */
.routepulse-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 12px;
    margin-bottom: 1.25rem;
}

.routepulse-stat-card {
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 12px 14px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.routepulse-stat-card:hover {
    border-color: #cbd5e1;
    box-shadow: var(--shadow);
}

.routepulse-stat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.routepulse-stat-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.routepulse-stat-icon {
    width: 26px;
    height: 26px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.routepulse-stat-val {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-main);
    line-height: 1.2;
}

.routepulse-stat-sub {
    font-size: 11.5px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Toplu İşlem Çubuğu (Bulk Action Bar) */
.bulk-bar {
    display: none;
    align-items: center;
    justify-content: space-between;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--radius-sm);
    padding: 8px 14px;
    margin-bottom: 12px;
    font-size: 12.5px;
    font-weight: 600;
    color: #166534;
}

/* Sub-Tab Bar (404 Monitörü Sekmeleri) */
.subtabs-bar {
    display: flex;
    gap: 6px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1rem;
    padding-bottom: 2px;
}

.subtab-btn {
    padding: 8px 14px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-muted);
    border: none;
    background: transparent;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    transition: color 0.15s ease, border-color 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.subtab-btn:hover {
    color: var(--text-main);
}

.subtab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: #ffffff;
}

/* Seçili Satır Vurgusu */
tr.row-selected td {
    background-color: #f8fafc !important;
}

/* İlerleme Çubuğu */
.scan-progress-box {
    margin: 16px 0;
}

.scan-progress-track {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.scan-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #0284c7);
    border-radius: 4px;
    transition: width 0.2s ease;
    width: 0%;
}

/* ======================================================== */
/* VERTEX AI & GEMINI 404 AKILLI EŞLEŞTİRME STİLLERİ       */
/* ======================================================== */

.btn-ai {
    background: #6366f1;
    color: #ffffff !important;
    border: 1px solid #4f46e5;
    font-weight: 600;
    transition: background 0.15s ease;
}

.btn-ai:hover {
    background: #4f46e5;
    transform: none !important;
}

.btn-ai-outline {
    background: #f5f3ff;
    color: #6366f1;
    border: 1px solid #e0e7ff;
    font-weight: 600;
    transition: all 0.15s ease;
}

.btn-ai-outline:hover {
    background: #e0e7ff;
    color: #4338ca;
    transform: none !important;
}

/* Satır İçi AI Öneri Kartı */
.ai-suggestion-card {
    background: #fbfbfe;
    border: 1px solid #c7d2fe;
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    margin-top: 8px;
    box-shadow: 0 1px 3px rgba(99, 102, 241, 0.08);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

.ai-reason-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #eef2ff;
    color: #4338ca;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}

.ai-cache-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: #fef3c7;
    color: #92400e;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10.5px;
    font-weight: 700;
}

.ai-suggestion-body {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-target-input {
    flex: 1;
    height: 30px;
    border: 1px solid #a5b4fc;
    border-radius: 4px;
    padding: 0 8px;
    font-family: monospace;
    font-size: 12px;
    font-weight: 600;
    color: #1e1b4b;
    background: #ffffff;
    outline: none;
}

.ai-target-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
}

.ai-apply-btn {
    height: 30px;
    padding: 0 12px;
    background: #15803d;
    color: #ffffff;
    border: 1px solid #166534;
    border-radius: 4px;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    transition: background 0.15s ease;
}

.ai-apply-btn:hover {
    background: #166534;
    transform: none !important;
}

.ai-cancel-btn {
    height: 30px;
    padding: 0 8px;
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 11.5px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.ai-cancel-btn:hover {
    background: #f1f5f9;
    color: var(--text-main);
    transform: none !important;
}

