/* ====================================================================
   ASYILDIZ APYS - YÖNETİCİ CANLI DASHBOARD & KOKPİT (FINTECH CRM SAAS)
   ==================================================================== */

/* Üst Yönetici Navigasyonu (Modern Sleek Navbar) */
.admin-navbar {
    background-color: #0f172a;
    color: #ffffff;
    height: var(--top-header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.18);
    border-bottom: 1px solid #1e293b;
    position: sticky;
    top: 0;
    z-index: 850;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.02em;
}

.brand-logo span {
    color: #f59e0b;
}

.admin-nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.admin-nav-link {
    color: #94a3b8;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.15s ease;
}

.admin-nav-link:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.06);
}

.admin-nav-link.active {
    color: #ffffff;
    background-color: rgba(79, 70, 229, 0.3);
    font-weight: 600;
    border: 1px solid rgba(99, 102, 241, 0.4);
}

/* Canlı Kur Şeridi (Live Rate Ticker) */
.rate-ticker-strip {
    background: #090d16;
    color: #94a3b8;
    padding: 5px 18px;
    font-size: 11.5px;
    display: flex;
    align-items: center;
    gap: 16px;
    overflow-x: auto;
    white-space: nowrap;
    border-bottom: 1px solid #1e293b;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.03);
    padding: 2px 7px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.ticker-code {
    font-weight: 700;
    color: #f8fafc;
}

.ticker-rate {
    color: #34d399;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 700;
}

/* Büyük KPI Kartları (Modern Layered SaaS KPI Cards) */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.kpi-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.kpi-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3.5px;
    height: 100%;
    background-color: var(--primary);
}

.kpi-card.kpi-gold::after { background-color: #f59e0b; }
.kpi-card.kpi-success::after { background-color: var(--success); }
.kpi-card.kpi-info::after { background-color: var(--info); }
.kpi-card.kpi-danger::after { background-color: var(--danger); }
.kpi-card.kpi-primary::after { background-color: var(--primary); }

.kpi-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.kpi-value {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 6px 0 2px;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.kpi-subtext {
    font-size: 11.5px;
    color: var(--text-muted);
}

/* Canlı Saha Tablosu (Status Pills) */
.status-pill {
    padding: 3px 8px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    line-height: 1.2;
}

.status-ziyarette {
    background: rgba(2, 132, 199, 0.1);
    color: #0369a1;
    border: 1px solid rgba(2, 132, 199, 0.22);
}

.status-yolda {
    background: rgba(245, 158, 11, 0.1);
    color: #b45309;
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.status-musait {
    background: rgba(16, 185, 129, 0.1);
    color: #047857;
    border: 1px solid rgba(16, 185, 129, 0.24);
}

.status-offline {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

/* Canlı Aktivite Akışı (Live Polling Stream) */
.live-activity-feed {
    list-style: none;
    max-height: 440px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 12.5px;
    animation: fadeIn 0.3s ease;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary-subtle);
    color: var(--primary);
    border: 1px solid var(--primary-border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: 700;
    font-size: 10.5px;
}

.activity-content {
    flex: 1;
}

.activity-time {
    font-size: 10.5px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Harita Alanı */
#live-map-container {
    width: 100%;
    height: 440px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    z-index: 10;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-3px); }
    to { opacity: 1; transform: translateY(0); }
}
