﻿
/*==============================
SMARTBAN HEADER
==============================*/

#mainNavbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
    z-index: 1050;
    height: 84px;
    background: rgba(255,255,255,.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,.05);
}


    #mainNavbar .container {
        height: 84px;
        position: relative;
    }


.logo-main {
    height: 46px;
}


#mainNavbar .navbar-nav {
    gap: 8px;
}

#mainNavbar .nav-link {
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: 600;
    color: #23324D;
    transition: .25s;
}

    #mainNavbar .nav-link:hover {
        color: #0D6EFD;
        background: #F2F7FF;
    }

    #mainNavbar .nav-link.active {
        color: #0D6EFD;
    }

.btn-login {
    height: 46px;
    padding: 0 26px;
    border-radius: 12px;
    background: #0D6EFD;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: .25s;
}


    .btn-login:hover {
        background: #0055D4;
        color: #fff;
    }
/*======================================
SECTION
======================================*/

.mega-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 18px;
    color: #163A5F;
}

    .mega-section-title i {
        font-size: 24px;
        color: #0D6EFD;
    }

.mega-link {
    display: flex;
    gap: 15px;
    padding: 14px;
    margin-bottom: 10px;
    border-radius: 14px;
    text-decoration: none;
    transition: .25s;
    color: #243447;
}

    .mega-link:hover {
        background: #F4F8FF;
        transform: translateX(-5px);
    }

    .mega-link i {
        font-size: 24px;
        color: #0D6EFD;
        width: 34px;
    }

    .mega-link strong {
        display: block;
        font-size: 15px;
        color: #163A5F;
    }

    .mega-link small {
        color: #71829B;
    }


/*======================================
RIGHT CARD
======================================*/

.feature-card {
    background: linear-gradient(135deg,#0D6EFD,#1D4ED8);
    color: #fff;
    border-radius: 18px;
    padding: 30px;
    height: 100%;
}

.feature-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(255,255,255,.15);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

    .feature-card-icon i {
        font-size: 30px;
    }

.feature-card h5 {
    font-size: 18px;
    margin: 12px 0 8px;
}

.feature-card p {
    font-size: 13px;
    line-height: 24px;
    margin-bottom: 14px;
}



/* SmartBan Mega Panel */

#mainNavbar {
    position:fixed;
}
.mega-parent {
    position: static;
}
.mega-panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: min(1380px,96vw);
    margin-top: 0;
    background: #fff;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 20px 60px rgba(0,0,0,.15);
    z-index: 1055;
}

/*==================================================
SMARTBAN MEGA MENU
==================================================*/

.mega-content {
    width: 100%;
}

.mega-section {
    padding: 0 12px;
}

.mega-link {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    border-radius: 14px;
    text-decoration: none;
    transition: .25s;
    background: #fff;
    padding: 10px 12px;
    margin-bottom: 8px;
    gap: 12px;
}

    .mega-link:hover {
        background: #F5F9FF;
        transform: translateY(-3px);
        box-shadow: 0 10px 25px rgba(13,110,253,.08);
    }

    .mega-link i {
        width: 46px;
        height: 46px;
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 12px;
        background: #EEF5FF;
        color: #0D6EFD;
        font-size: 22px;
        flex-shrink: 0;
        transition: .25s;
    }

    .mega-link:hover i {
        background: #0D6EFD;
        color: #fff;
    }

    .mega-link strong {
        display: block;
        font-size: 15px;
        color: #163A5F;
        margin-bottom: 4px;
    }

    .mega-link small {
        display: block;
        color: #738195;
        line-height: 1.7;
    }

.mega-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 18px;
    font-weight: 700;
    color: #163A5F;
}

    .mega-section-title span {
        font-size: 16px;
    }
    .mega-section-title i {
        width: 42px;
        height: 42px;
        display: flex;
        justify-content: center;
        align-items: center;
        background: #EEF5FF;
        border-radius: 12px;
        color: #0D6EFD;
        font-size: 20px;
    }

/* کارت سمت چپ */

.feature-card {
    height: 100%;
    border-radius: 18px;
    padding: 20px;
    background: linear-gradient(135deg,#0D6EFD,#1D4ED8);
    color: #fff;
    overflow: hidden;
    position: relative;
}

    .feature-card::before {
        content: "";
        position: absolute;
        width: 180px;
        height: 180px;
        border-radius: 50%;
        background: rgba(255,255,255,.08);
        top: -70px;
        left: -70px;
    }

.feature-card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 16px;
    background: rgba(255,255,255,.15);
    margin-bottom: 22px;
}

    .feature-card-icon i {
        font-size: 32px;
        color: #fff;
    }

.feature-card .btn {
    border-radius: 12px;
    padding: 10px 20px;
    font-weight: 600;
}

/*==========================================
SMARTBAN PLATFORM PREVIEW
==========================================*/

.platform-preview {
    margin-top: 14px;
}

.core {
    text-align: center;
    margin-bottom: 22px;
}

.core-icon {
    width: 56px;
    height: 56px;
    margin: auto;
    border-radius: 18px;
    background: rgba(255,255,255,.18);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    color: #fff;
    margin-bottom: 10px;
}

.core span {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 8px;
}

.preview-item {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 14px;
    padding: 10px 6px;
    text-align: center;
    transition: .25s;
}

    .preview-item:hover {
        background: rgba(255,255,255,.22);
        transform: translateY(-3px);
    }

    .preview-item i {
        display: block;
        font-size: 22px;
        margin-bottom: 8px;
        color: #fff;
    }

    .preview-item small {
        color: #fff;
        font-size: 11px;
        font-weight: 600;
    }
.mega-parent:hover > .mega-panel {
    display: block;
}

@media (max-width:1199.98px) {

    #navbarMain {
        background: #fff;
        margin-top: 10px;
        padding: 20px;
        border-radius: 16px;
        box-shadow: 0 15px 40px rgba(0,0,0,.12);
    }
}

@media (min-width:1200px) {

    .mega-parent:hover > .mega-panel {
        display: block;
    }
}

@media (max-width:1199px) {

    #navbarMain {
        max-height: calc(100vh - 84px);
        overflow-y: auto;
    }

    .mega-panel {
        max-height: 60vh;
        overflow-y: auto;
    }
}
/* موبایل */
@media (max-width:1199.98px) {
    #navbarMain .nav-link {
        border-radius: 10px;
        margin-bottom: 6px;
    }
    .mega-panel {
        position: static;
        transform: none;
        width: 100%;
        max-width: 100%;
        margin-top: 8px;
        box-shadow: none;
        border-radius: 12px;
        padding: 12px;
        display: none;
    }

    .mega-content {
        padding: 0;
    }

    .mega-section {
        margin-bottom: 20px;
    }
}

@media (max-width:1199px) {

    .mega-panel {
        display: none;
    }

        .mega-panel.show {
            display: block;
        }
}
.notification-menu {
    width: 360px;
    padding: 0;
    overflow: hidden;
    border: none;
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0,0,0,.12);
}

.notification-header {
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #F8FAFC;
    border-bottom: 1px solid #EEF2F7;
}

    .notification-header h6 {
        margin: 0;
        font-weight: 700;
        color: #163A5F;
    }

    .notification-header small {
        color: #8B98A9;
    }

.notification-list {
    max-height: 420px;
    overflow: auto;
}

.notification-item {
    display: flex;
    gap: 14px;
    padding: 16px 20px;
    text-decoration: none;
    color: inherit;
    transition: .25s;
    border-bottom: 1px solid #F3F5F7;
}

    .notification-item:hover {
        background: #F7FBFF;
    }

    .notification-item.unread {
        background: #FAFCFF;
    }

        .notification-item.unread::before {
            content: "";
            width: 4px;
            border-radius: 20px;
            background: #0D6EFD;
            margin-left: 4px;
        }

.notify-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    flex-shrink: 0;
}

    .notify-icon i {
        font-size: 20px;
    }

.notify-content {
    flex: 1;
}

    .notify-content h6 {
        margin: 0 0 4px;
        font-size: 14px;
        font-weight: 700;
        color: #163A5F;
    }

    .notify-content p {
        margin: 0;
        font-size: 13px;
        color: #738195;
        line-height: 1.7;
    }

.notify-footer {
    margin-top: 8px;
    font-size: 11px;
    color: #9AA8B6;
}

    .notify-footer i {
        margin-left: 4px;
    }

.notification-bottom {
    padding: 14px;
    background: #fff;
}

    .notification-bottom a {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 6px;
        font-weight: 700;
        text-decoration: none;
        color: #0D6EFD;
    }

        .notification-bottom a:hover {
            color: #0055D4;
        }
/*=========================================
MOBILE ACTION BUTTONS
=========================================*/

.mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 72px;
    background: #fff;
    border-top: 1px solid #e6edf5;
    box-shadow: 0 -10px 30px rgba(0,0,0,.08);
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    z-index: 2000;
}

.mobile-bottom-btn {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    border: none;
    background: #F3F8FF;
    color: #0D6EFD;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    transition: .25s;
}

    .mobile-bottom-btn:hover {
        background: #0D6EFD;
        color: #fff;
    }

@media(min-width:1200px) {
    .mobile-bottom-bar {
        display: none;
    }
}

/* دسکتاپ */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* موبایل */
@media (max-width:1199.98px) {

    .navbar-actions {
        visibility: hidden;
        opacity: 0;
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
}

.mobile-bottom-bar .dropdown {
    position: relative;
}

.mobile-bottom-bar .dropdown-menu {
    position: absolute !important;
    bottom: 70px !important;
    top: auto !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    margin: 0;
}

@media (max-width:1199.98px) {

    /*.btn-login {
        width: 40px;
        height: 40px;
        padding: 0;
        border-radius: 10px;
        justify-content: center;
    }*/

   /* .btn-login,
    .notification-btn {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        line-height: 1;
        margin: 0;
    }


        .btn-login .login-text {
            display: none;
        }

        .btn-login i {
            font-size: 18px;
            margin: 0;
        }

    
        .notification-btn i {
            font-size: 18px;
        }

    .notification-count {
        width: 16px;
        height: 16px;
        font-size: 9px;
        top: -4px;
        right: -4px;
    }

   
    .navbar-actions {
        display: flex;
        align-items: center;
        align-self: center;
        height: 100%;
        margin-top: 0;
    }*/
}
.mobile-floating-menu {
    position: fixed !important;
    left: 16px !important;
    right: 16px !important;
    bottom: 80px !important;
    top: auto !important;
    transform: none !important;
    width: auto !important;
    z-index: 3000;
}
.mobile-bottom-bar .dropdown-menu.show {
    display: block !important;
}

@media (max-width:1199px) {

    .mobile-bottom-bar .dropdown-menu {
        position: fixed !important;
        left: 12px;
        right: 12px;
        bottom: 75px;
        width: auto !important;
        max-width: none !important;
        transform: none !important;
        inset: auto 12px 75px 12px !important;
        z-index: 5000;
    }
}