/* Alt Eylem ve Navigasyon Çubuğu (Full-Width Bottom Bar + Elevated AI FAB) */

/* CSS değişkenleri */
:root {
    --nav-bar-height: 64px;
    --nav-fab-size: 56px;
}

.bottom-nav-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    pointer-events: none;
}

.bottom-toolbar {
    pointer-events: auto;
    width: 100%;
    background: rgba(255, 253, 247, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(45, 90, 67, 0.12);
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -8px 30px rgba(45, 90, 67, 0.08);
    display: flex;
    align-items: center;
    padding: 0 24px;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    height: var(--nav-bar-height);
    position: relative;
    overflow: visible;
}

.toolbar-actions {
    display: flex;
    align-items: center;
    gap: 32px;
    height: 100%;
    padding-right: 80px; /* Sağdaki FAB için boşluk */
}

.toolbar-btn {
    background: transparent;
    border: none;
    outline: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #839487;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
}

.toolbar-btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    transition: transform 0.2s ease;
}

.toolbar-btn:hover {
    color: #2d5a43;
    transform: translateY(-2px);
}

.toolbar-btn:active {
    transform: scale(0.92);
}

.toolbar-btn.active {
    color: #2d5a43;
}

.toolbar-btn.active svg {
    transform: scale(1.1);
}

/* Sağda Yükseltilmiş AI Butonu — barın üst kenarından yarıya kadar dışarı taşıyor */
.toolbar-ai-btn {
    position: absolute;
    right: 20px;
    /* FAB merkezi barın üst kenarı hizasında */
    bottom: calc(var(--nav-bar-height) - var(--nav-fab-size) / 2 + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(135deg, #2d5a43 0%, #1e3d2c 100%);
    border: 2px solid rgba(255, 253, 247, 0.95);
    outline: none;
    width: var(--nav-fab-size);
    height: var(--nav-fab-size);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(45, 90, 67, 0.4), 0 0 20px rgba(45, 90, 67, 0.2);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
    z-index: 10;
}

.toolbar-ai-btn svg {
    width: 26px;
    height: 26px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.toolbar-ai-btn:hover {
    transform: translateY(-4px) scale(1.06);
    box-shadow: 0 14px 30px rgba(45, 90, 67, 0.55), 0 0 25px rgba(45, 90, 67, 0.3);
}

.toolbar-ai-btn:active {
    transform: scale(0.95);
}

.toolbar-ai-btn.active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.35), 0 12px 28px rgba(16, 185, 129, 0.5);
}

/* Eski FAB uyumluluğu */
.fab-container {
    display: none !important;
}