﻿
/* كود الشريط السفلي المصلح والنهائي */
.ks-bottom-nav {
    position: fixed;
    bottom: 0;
    /* السر في التوسيط هنا - لا تغير هذه الأسطر */
    left: 50%;
    transform: translateX(-50%) !important;
    /* العرض يجب أن يطابق عرض الحاوية تماماً */
    width: 100%;
    max-width: 480px;
    height: 64px;
    z-index: 2000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(13, 43, 82, 0.08);
    box-shadow: 0 -4px 24px rgba(13, 43, 82, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 8px;
    font-family: "Cairo", sans-serif;
    direction: rtl;
}

 
/* شريط الزينة العلوي */
.ks-bottom-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #e8510a, #f97316, #0d2b52);
    opacity: 0.5;
}

/* باقي كود الأيقونات (ks-nav-item) يبقى كما هو لديك */

/* subtle top accent stripe — mirrors the header */
 

/* ── Nav Item ── */
.ks-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-decoration: none;
    color: #94a3b8;
    font-size: 10px;
    font-weight: 800;
    padding: 6px 4px;
    border-radius: 16px;
    transition: color 0.2s ease;
    position: relative;
}

    .ks-nav-item span {
        line-height: 1;
        transition: color 0.2s;
    }

/* Icon wrapper */
.ks-nav-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 17px;
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.3);
    position: relative;
}

.ks-nav-item:hover .ks-nav-icon {
    color: var(--ks-brand, #0d2b52);
    background: #f1f5f9;
    transform: translateY(-2px);
}

/* ── Active State ── */
.ks-nav-item.active {
    color: var(--ks-brand, #0d2b52);
}

    .ks-nav-item.active .ks-nav-icon {
        background: #e8eef8;
        color: var(--ks-brand, #0d2b52);
    }

    /* active dot indicator */
    .ks-nav-item.active::after {
        content: '';
        position: absolute;
        bottom: 2px;
        width: 4px;
        height: 4px;
        background: var(--ks-accent, #e8510a);
        border-radius: 50%;
    }

/* ── Add Button (center) ── */
.ks-nav-add {
    flex: 1.2;
}

.ks-nav-add-btn {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--ks-accent, #e8510a), var(--ks-accent2, #f97316));
    color: #fff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 6px 18px rgba(232, 81, 10, 0.35);
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.3);
    margin-top: -14px; /* pops above the nav */
}

.ks-nav-add:hover .ks-nav-add-btn,
.ks-nav-add.active .ks-nav-add-btn {
    transform: translateY(-4px) rotate(90deg) scale(1.08);
    box-shadow: 0 10px 24px rgba(232, 81, 10, 0.45);
}

.ks-nav-add span {
    color: var(--ks-accent, #e8510a);
    font-weight: 900;
}

/* ── Safe area for iPhone notch ── */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .ks-bottom-nav {
        padding-bottom: env(safe-area-inset-bottom);
        height: calc(64px + env(safe-area-inset-bottom));
    }
}

 
/* دعم الهواتف الحديثة (مثل iPhone Notch) */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .ks-bottom-nav {
        padding-bottom: env(safe-area-inset-bottom);
        height: calc(64px + env(safe-area-inset-bottom));
    }
}
 