.fg-nav-icon.fg-notification {
    animation: pulse 2s infinite;
}

.fg-notification-badge {
    position: absolute;
    padding-top: 3px;
    right: -5px;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 1px solid #b23737;
    animation: bounce 1s infinite alternate;
}


.fg-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px; /* افزایش ارتفاع navbar */
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 8px solid rgba(102, 126, 234, 0.3); /* بردر بزرگ */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px; /* حفظ پدینگ راست و چپ */
    z-index: 1000;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.fg-navbar:hover {
    background: rgba(255, 255, 255, 1);
    border-bottom: 10px solid rgba(102, 126, 234, 0.6); /* بردر بزرگ‌تر در هاور */
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.25);
    transform: translateY(-2px);
}

.fg-navbar.fg-scrolled {
    background: rgba(255, 255, 255, 0.98);
    height: 75px; /* افزایش ارتفاع در حالت اسکرول */
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-bottom: 8px solid rgba(102, 126, 234, 0.4);
}

.fg-navbar.fg-scrolled:hover {
    box-shadow: 0 14px 45px rgba(102, 126, 234, 0.3);
    border-bottom: 10px solid rgba(102, 126, 234, 0.6);
    transform: translateY(-2px);
}

.fg-navbar-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.fg-profile-section {
    position: relative;
}

.fg-profile-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.fg-profile-avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.4);
}

.fg-profile-dropdown {
    position: absolute;
    top: 65px; /* تنظیم موقعیت به دلیل افزایش ارتفاع navbar */
    right: 0;
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    padding: 20px;
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1001;
}

.fg-profile-dropdown.fg-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fg-profile-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.fg-profile-info .fg-profile-avatar {
    width: 50px;
    height: 50px;
    font-size: 18px;
    cursor: default;
}

.fg-profile-info .fg-profile-avatar:hover {
    transform: none;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.fg-profile-details h4 {
    color: #333;
    font-size: 16px;
    margin-bottom: 3px;
    font-weight: 600;
}

.fg-profile-details p {
    color: #666;
    font-size: 13px;
    margin-bottom: 5px;
}

.fg-profile-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 500;
}

.fg-profile-status.fg-complete {
    background: #d4edda;
    color: #155724;
}

.fg-profile-status.fg-incomplete {
    background: #f8d7da;
    color: #721c24;
}

.fg-status-icon {
    font-size: 10px;
}

.fg-dropdown-menu {
    list-style: none;
}

.fg-dropdown-item {
    padding: 12px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #333;
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 8px 12px;
    margin: 2px 0;
}

.fg-dropdown-item:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    transform: translateX(-5px);
}

.fg-dropdown-item i {
    width: 16px;
    font-size: 16px;
}

.fg-navbar-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
}

.fg-logo {
    font-size: 32px;
    font-weight: bold;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.fg-logo:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

.fg-navbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.fg-nav-icon {
    position: relative;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #667eea;
    font-size: 20px;
}

.fg-nav-icon:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

/*.fg-nav-icon.fg-notification {*/
/*    animation: pulse 2s infinite;*/
/*}*/

/*.fg-notification-badge {*/
/*    position: absolute;*/
/*    top: -5px;*/
/*    right: -5px;*/
/*    background: #ff4757;*/
/*    color: white;*/
/*    border-radius: 50%;*/
/*    width: 20px;*/
/*    height: 20px;*/
/*    font-size: 11px;*/
/*    display: flex;*/
/*    align-items: center;*/
/*    justify-content: center;*/
/*    font-weight: bold;*/
/*    animation: bounce 1s infinite alternate;*/
/*}*/

.fg-search-container {
    position: relative;
    margin-right: 20px;
}

.fg-search-bar {
    width: 300px;
    height: 45px;
    border: none;
    border-radius: 25px;
    padding: 0 50px 0 20px;
    background: rgba(102, 126, 234, 0.1);
    color: #333;
    font-size: 14px;
    transition: all 0.3s ease;
    outline: none;
}

.fg-search-bar:focus {
    width: 350px;
    background: white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

.fg-search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #667eea;
    cursor: pointer;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(102, 126, 234, 0); }
    100% { box-shadow: 0 0 0 0 rgba(102, 126, 234, 0); }
}

@keyframes bounce {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-3px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.fg-navbar {
    animation: fadeInUp 0.8s ease;
}

@media (max-width: 768px) {
    .fg-navbar {
        padding: 0 15px; /* حفظ پدینگ راست و چپ در موبایل */
        height: 80px; /* حفظ ارتفاع در موبایل */
    }

    .fg-navbar.fg-scrolled {
        height: 75px; /* ارتفاع در حالت اسکرول در موبایل */
    }

    .fg-search-bar {
        width: 200px;
    }

    .fg-search-bar:focus {
        width: 230px;
    }

    .fg-navbar-right {
        gap: 10px;
    }

    .fg-logo {
        font-size: 24px;
    }

    .fg-profile-dropdown {
        min-width: 250px !important;
        right: -50px !important;
        top: 65px; /* تنظیم موقعیت dropdown در موبایل */
    }
}

.fg-demo-content {
    padding: 110px 40px 40px; /* تنظیم پدینگ محتوا برای هماهنگی با ارتفاع جدید navbar */
    text-align: center;
    color: white;
}

.fg-demo-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    margin: 20px auto;
    max-width: 600px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}















.fg-theme {
    --primary-bg: #1a202c;
    --secondary-bg: #f7fafc;
    --text-primary: #ffffff;
    --text-secondary: #2d3748;
    --accent-start: #667eea;
    --accent-end: #764ba2;
    --success-color: #48bb78;
    --warning-color: #ed8936;
    --info-color: #3182ce;
    --border-radius: 8px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --modal-backdrop: rgba(0, 0, 0, 0.6);
}

@media (prefers-color-scheme: light) {
    .fg-theme {
        --primary-bg: #f7fafc;
        --text-primary: #2d3748;
    }
}

.fg-notification-modal {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: var(--modal-backdrop);
    backdrop-filter: blur(5px);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fg-notification-modal.fg-show {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.fg-notification-modal-content {
    background: var(--primary-bg);
    border-radius: var(--border-radius);
    width: 95%;
    max-width: 500px;
    height: 100vh; /* ارتفاع پیش‌فرض برای دسکتاپ */
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transform: scale(0.9) translateY(-20px);
    transition: transform 0.3s ease;
    direction: rtl;
    display: flex;
    flex-direction: column;
}

@media (max-width: 768px) {
    .fg-notification-modal-content {
        height: 80vh;
        max-height: 80vh;
        overflow: auto;
    }
}

.fg-notification-header {
    background: linear-gradient(135deg, var(--accent-start) 0%, var(--accent-end) 100%);
    color: var(--text-primary);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fg-notification-header h3 {
    margin: 0;
    font-size: 1.3em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.fg-close-modal {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.8em;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.fg-close-modal:hover {
    background: rgba(255, 255, 255, 0.2);
}

.fg-notification-tabs {
    display: flex;
    background: var(--secondary-bg);
    border-bottom: 1px solid #e9ecef;
}

.fg-tab-btn {
    flex: 1;
    padding: 15px;
    border: none;
    background: none;
    color: #666;
    font-size: 1em;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.fg-tab-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.fg-tab-btn.fg-active {
    color: var(--accent-start);
    background: white;
}

.fg-tab-btn.fg-active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, var(--accent-start) 0%, var(--accent-end) 100%);
}

.fg-notification-body {
    max-height: 500px;
    overflow-y: auto;
    padding: 20px;
    flex-grow: 1;
}

.fg-notification-body::-webkit-scrollbar {
    width: 6px;
}

.fg-notification-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.fg-notification-body::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--accent-start) 0%, var(--accent-end) 100%);
    border-radius: 3px;
}

.fg-notification-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.fg-notification-item {
    padding: 10px 15px;
    border-bottom: 1px solid #f0f0f0;
    background: #f9fbfd;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.fg-notification-item.fg-unread {
    background: linear-gradient(90deg, rgba(205, 214, 255, 0.3) 0%, rgba(255, 255, 255, 1) 20%);
    border-right: 3px solid var(--accent-start);
    cursor: pointer;
}

.fg-notification-item.fg-unread:hover {
    background: #e8edff;
    transform: translateX(-3px);
}

.fg-notification-item:not(.fg-unread) {
    cursor: default;
    pointer-events: none;
}

.fg-notification-content {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.fg-notification-icon {
    color: var(--accent-start);
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.9em;
}

.fg-notification-icon i.fa-check-circle {
    color: var(--success-color);
}

.fg-notification-icon i.fa-user-plus {
    color: var(--info-color);
}

.fg-notification-icon i.fa-bell,
.fg-notification-icon i.fa-bell-slash {
    color: var(--warning-color);
}

.fg-notification-icon i.fa-file-alt,
.fg-notification-icon i.fa-gift,
.fg-notification-icon i.fa-comment {
    color: var(--accent-start);
}

.fg-notification-icon i.fa-exclamation-triangle {
    color: var(--warning-color);
}

.fg-notification-text {
    flex: 1;
}

.fg-notification-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    line-height: 1.3;
    font-size: 0.95em;
}

.fg-notification-item:not(.fg-unread) .fg-notification-title {
    color: var(--text-primary);
}

.fg-notification-message {
    color: #5c6b7a;
    font-size: 0.8em;
    line-height: 1.4;
    margin-bottom: 6px;
}

.fg-notification-item:not(.fg-unread) .fg-notification-message {
    color: var(--text-primary);
}

.fg-notification-time {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75em;
    color: #ff4757;
}

.fg-notification-item:not(.fg-unread) .fg-notification-time {
    color: #ff4757;
}

.fg-notification-footer {
    padding: 15px 20px;
    background: var(--secondary-bg);
    display: flex;
    justify-content: space-between;
}

.fg-mark-all-read {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--accent-start) 0%, var(--accent-end) 100%);
    color: var(--text-primary);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.95em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.fg-mark-all-read:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.fg-close-btn, .fg-archive-btn {
    padding: 10px 20px;
    border: none;
    border-radius: var(--border-radius);
    background: #c2212e;
    color: var(--text-primary);
    cursor: pointer;
    transition: background 0.3s ease;
}

.fg-close-btn:hover {
    background: darkred;
}

.fg-archive-btn:hover {
    background: var(--info-color);
}

.fg-notification-empty {
    padding: 40px 20px;
    text-align: center;
    color: #95a5a6;
}

.fg-notification-empty i {
    font-size: 3em;
    margin-bottom: 15px;
    color: #e9ecef;
}

.fg-nav-icon.fg-notification {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.fg-notification-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #ff4757;
    color: #fff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7em;
    font-weight: bold;
    line-height: 1;
    text-align: center;
    box-sizing: border-box;
    animation: fg-pulse 2s infinite;
}

@keyframes fg-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@media (prefers-color-scheme: dark) {
    .fg-notification-modal-content {
        background: #34495e;
    }

    .fg-notification-item {
        background: #34495e;
        border-bottom: 1px solid #4a5f7a;
    }

    .fg-notification-item.fg-unread:hover {
        background: #4a5f7a;
    }

    .fg-notification-icon {
        color: #a3bffa;
    }

    .fg-notification-footer {
        background: #34495e;
    }

    .fg-notification-badge {
        background: #b32222;
    }
}
