/* ====================================================================
   ASYILDIZ APYS - PAZARLAMACI ARAYÜZÜ (BOTTOM NAV & FAB SYSTEM)
   ==================================================================== */

/* Üst Header */
.app-header {
    background-color: #0f172a;
    color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 850;
    border-bottom: 1px solid #1e293b;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.18);
}

.app-header-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--top-header-height);
}

.header-brand-title {
    font-weight: 800;
    font-size: 15px;
    color: #ffffff;
    letter-spacing: 0.02em;
    line-height: 1.1;
}

.header-user-subtitle {
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.1;
}

.btn-header-logout {
    padding: 4px 10px;
    font-size: 11.5px;
    font-weight: 600;
    color: #f87171;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 6px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.15s ease;
}

.btn-header-logout:hover {
    background: rgba(239, 68, 68, 0.22);
    color: #ef4444;
}

/* Alt Gezinme Çubuğu (Bottom Navigation Bar) */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-nav-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 -4px 25px rgba(15, 23, 42, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 900;
    padding-bottom: env(safe-area-inset-bottom);
    max-width: 100vw;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    flex: 1;
    height: 100%;
    transition: all 0.15s ease;
    gap: 2px;
}

.nav-item svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
    transition: transform 0.15s ease, fill 0.15s ease;
}

.nav-item:hover {
    color: var(--primary-dark);
}

.nav-item:active svg {
    transform: scale(0.9);
}

.nav-item.active {
    color: var(--primary);
    font-weight: 700;
}

.nav-item.active svg {
    fill: var(--primary);
}

/* Yüzen Hızlı İşlem Butonu (+ FAB) */
.fab-container {
    position: fixed;
    bottom: calc(var(--bottom-nav-height) + 16px);
    right: 20px;
    z-index: 950;
}

.fab-btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px -2px rgba(79, 70, 229, 0.5), 0 2px 6px -1px rgba(79, 70, 229, 0.25);
    border: none;
    cursor: pointer;
    font-size: 28px;
    font-weight: 300;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.fab-btn:hover {
    transform: scale(1.06);
    box-shadow: 0 12px 28px -2px rgba(79, 70, 229, 0.6);
}

.fab-btn:active {
    transform: scale(0.94);
}

.fab-menu {
    position: absolute;
    bottom: 64px;
    right: 0;
    background: #ffffff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    width: 200px;
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: scaleInModal 0.2s ease;
}

.fab-menu.active {
    display: flex;
}

.fab-menu-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px solid var(--border-light);
    transition: background-color 0.12s, color 0.12s;
}

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

.fab-menu-item:hover, .fab-menu-item:active {
    background-color: #f8fafc;
    color: var(--primary);
}

/* Günlük Özet Şerit Kartı (Daily Ribbon KPI) */
.daily-kpi-ribbon {
    display: grid;
    gap: 8px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 12px;
    text-align: center;
}

.kpi-item-box {
    display: flex;
    flex-direction: column;
    padding: 4px;
}

.kpi-num {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.kpi-num.kpi-positive { color: #059669; }
.kpi-num.kpi-gold { color: #d97706; }

.kpi-label {
    font-size: 10.5px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-top: 2px;
}

/* Ziyaret Kartı (Sleek SaaS Mobile Visit Card) */
.visit-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 14px;
    margin-bottom: 10px;
    position: relative;
    border-left: 4px solid var(--border-color);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.visit-card:hover {
    box-shadow: var(--shadow-md);
}

.visit-card.status-started {
    border-left-color: var(--primary);
    background: #fdfefe;
}

.visit-card.status-completed {
    border-left-color: var(--success);
}

.visit-card.status-planned {
    border-left-color: var(--gold);
}

.visit-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 6px;
}

.company-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.visit-time-badge {
    background: #f1f5f9;
    padding: 2px 7px;
    border-radius: var(--radius-xs);
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    white-space: nowrap;
}

.visit-meta {
    font-size: 12.5px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.visit-meta-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Hızlı Eylem Butonları Grubu (Ara, WhatsApp, Nav, Başlat) */
.quick-actions-bar {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border-light);
}

.action-btn-pill {
    flex: 1;
    min-height: 34px;
    padding: 4px 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 11.5px;
    font-weight: 600;
    border-radius: var(--radius-xs);
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.15s ease;
}

.action-btn-pill:active {
    transform: scale(0.96);
}

.action-btn-call { color: #2563eb; background: rgba(37, 99, 235, 0.08); border-color: rgba(37, 99, 235, 0.2); }
.action-btn-wa { color: #16a34a; background: rgba(22, 163, 74, 0.08); border-color: rgba(22, 163, 74, 0.2); }
.action-btn-nav { color: #d97706; background: rgba(217, 119, 6, 0.08); border-color: rgba(217, 119, 6, 0.2); }

.main-action-btn {
    width: 100%;
    margin-top: 8px;
    min-height: 42px;
    font-size: 14px;
    font-weight: 700;
}

/* Sayfa Altı Boşluğu (Bottom Nav'ın altında kalmamak için) */
.page-with-bottom-nav {
    padding-bottom: 90px;
}
