/* User Dropdown Styles */
.tgmenu__action .dropdown-toggle {
    cursor: pointer;
    transition: all 0.3s;
}
.tgmenu__action .dropdown-toggle:hover {
    color: #5751e1;
}
.tgmenu__action .dropdown-menu {
    min-width: 200px;
    padding: 10px 0;
    margin-top: 15px;
    border: none;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.tgmenu__action .dropdown-item {
    padding: 10px 20px;
    font-size: 14px;
    color: #3c3b48;
    transition: all 0.3s;
}
.tgmenu__action .dropdown-item:hover {
    background: #f7f7f7;
    color: #5751e1;
    padding-left: 25px;
}
.tgmenu__action .dropdown-item i {
    width: 18px;
}
.tgmenu__action .dropdown-divider {
    margin: 8px 0;
}
.tgmenu__action form button {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
}
.header-user .dropdown-menu {
    margin-top: 16px;
}
.header-user.dropdown {
    background: var(--tg-theme-secondary);
    border-radius: 999px;
    padding: 3px;
}
.header-user.dropdown .user-pill,
.header-user.dropdown .user-pill__labels strong,
.header-user.dropdown .user-pill__labels small,
.header-user.dropdown .user-pill__chevron i {
    color: var(--tg-common-color-white);
}
.header-user.dropdown .user-pill {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.45);
}
.user-pill {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 9px 20px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-weight: 600;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 25px rgba(8, 9, 31, 0.45);
    transition: all 0.25s ease;
}
.user-pill__media {
    position: relative;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: inset 0 0 0 2px rgba(13, 12, 49, 0.4);
}
.user-pill__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.user-pill__status {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #4ade80;
    border: 2px solid #111126;
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.3);
}
.user-pill__labels {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.user-pill__labels small {
    font-size: 11px;
    letter-spacing: 0.6px;
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
}
.user-pill__labels strong {
    font-size: 14px;
}
.user-pill__chevron i {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.65);
}
.user-menu {
    min-width: 280px;
    padding: 0;
    border-radius: 22px;
    border: 1px solid rgba(87, 81, 225, 0.18);
    box-shadow: 0 30px 65px rgba(18, 14, 52, 0.25);
    background: #fff;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(0.97);
    transition: all 0.25s ease;
}
.user-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}
.user-menu__profile {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 20px 16px;
    border-bottom: 1px solid #f0f0fc;
    background: linear-gradient(130deg, #f8f7ff, #ffffff);
}
.user-menu__avatar {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    overflow: hidden;
    border: 3px solid #fff;
    box-shadow: 0 6px 16px rgba(87, 81, 225, 0.25);
}
.user-menu__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.user-menu__info h6 {
    margin-bottom: 4px;
    font-size: 16px;
    color: #1c1d3b;
}
.user-menu__info p {
    margin-bottom: 0;
    font-size: 13px;
    color: #7a7d9a;
}
.user-menu__badge {
    margin-left: auto;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    background: rgba(87, 81, 225, 0.12);
    color: #5751e1;
    padding: 4px 10px;
    border-radius: 12px;
}
.user-menu__quick {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 16px 18px 10px;
}
.user-menu__quick-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid #f0f0fc;
    background: #fff;
    text-decoration: none;
    color: #1f1f2c;
    transition: all 0.2s ease;
}
.user-menu__quick-link strong {
    font-size: 14px;
    display: block;
}
.user-menu__quick-link small {
    font-size: 12px;
    color: #8586a5;
}
.user-menu__quick-link:hover {
    border-color: rgba(87, 81, 225, 0.4);
    box-shadow: 0 10px 20px rgba(87, 81, 225, 0.12);
}
.user-menu__icon {
    width: 46px;
    height: 46px;
    border-radius: 0;
    background: rgba(87, 81, 225, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #5751e1;
    font-size: 17px;
}
.user-menu__actions {
    padding: 14px 20px 18px;
    border-top: 1px solid #f0f0fc;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.user-menu__primary,
.user-menu__secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 14px;
    border: none;
    font-weight: 600;
    text-decoration: none;
    padding: 12px;
    transition: all 0.2s ease;
}
.user-menu__primary {
    background: linear-gradient(120deg, #6b63ff, #8a81ff);
    color: #fff;
    box-shadow: 0 15px 30px rgba(107, 99, 255, 0.35);
}
.user-menu__primary:hover {
    box-shadow: 0 20px 32px rgba(107, 99, 255, 0.45);
}
.user-menu__secondary {
    background: #f8f8ff;
    color: #565982;
}
.user-menu__secondary:hover {
    background: #f0f0ff;
    color: #2f3053;
}

/* Notification Styles */
.header-notification {
    position: relative;
    margin-right: 15px;
}
.header-notification:last-child {
    margin-right: 0;
}
.header-notification .notification-icon {
    position: relative;
    background: transparent;
    border: none;
    color: #3c3b48;
    font-size: 18px;
    cursor: pointer;
    transition: color 0.3s;
}
.header-notification .notification-icon:hover {
    color: #5751e1;
}
.header-notification .notification-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: #ff4d4f;
    color: #fff;
    font-size: 11px;
    line-height: 1;
    padding: 3px 5px;
    border-radius: 10px;
}
.notification-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 15px);
    width: 320px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
    z-index: 1000;
}
.notification-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.notification-header {
    border-bottom: 1px solid #f1f1f5;
    padding-bottom: 12px;
    margin-bottom: 12px;
}
.notification-header h5 {
    font-size: 16px;
    font-weight: 600;
}
.notification-header .mark-all-read {
    font-size: 12px;
    color: #5751e1;
    cursor: pointer;
    background: transparent;
    border: none;
    font-weight: 600;
    padding: 0;
    position: relative;
    overflow: hidden;
    transition: color 0.3s ease;
}
.notification-header .mark-all-read::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}
.notification-header .mark-all-read:hover::after {
    transform: scaleX(1);
}
.notification-header .mark-all-read.is-loading {
    pointer-events: none;
    opacity: 0.6;
}
.notification-list {
    max-height: 320px;
    overflow-y: auto;
    margin-bottom: 12px;
}
.notification-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f6f6fb;
}
.notification-item:last-child {
    border-bottom: none;
}
.notification-item.unread {
    background: rgba(87, 81, 225, 0.05);
    border-radius: 10px;
    padding: 12px;
}
.notification-icon-small {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(87, 81, 225, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5751e1;
    flex-shrink: 0;
}
.notification-content h6 {
    font-size: 14px;
    margin-bottom: 4px;
    font-weight: 600;
    color: #1f1f2b;
}
.notification-content p {
    font-size: 13px;
    color: #5f5f6f;
    margin-bottom: 4px;
    line-height: 1.4;
}
.notification-content .notification-mark-read {
    border: none;
    background: transparent;
    color: #5751e1;
    font-size: 12px;
    font-weight: 600;
    padding: 0;
    cursor: pointer;
}
.notification-time {
    font-size: 12px;
    color: #8c8c99;
}
.notification-footer a {
    font-size: 13px;
    font-weight: 600;
    color: #5751e1;
}
.notification-empty {
    color: #8c8c99;
}
@media (max-width: 1199px) {
    .notification-dropdown {
        right: auto;
        left: 50%;
        transform: translate(-50%, 10px);
    }
    .notification-dropdown.active {
        transform: translate(-50%, 0);
    }
}

/* Banner profile avatar */
.profile-pic-wrapper {
    position: relative;
    display: inline-block;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #ffffff;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15);
    background: #fff;
}
.profile-pic-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.profile-pic-wrapper .change-photo-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #5751e1;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    box-shadow: 0 8px 15px rgba(87, 81, 225, 0.4);
    cursor: pointer;
}

