/* ===============================
   HEADER / NAV
=============================== */
header {
    position: relative;
    z-index: 10;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;
    min-height: 72px;
    margin: 0;
    padding: 8px 14px;
    box-sizing: border-box;

    background: var(--nav-color, #2b2b2b);
}

body {
    padding-top: 72px;
}

/* ===============================
   NAV GROUPS
=============================== */
.nav-left,
.nav-right {
    display: flex;
    align-items: center;
}

.nav-left {
    gap: 10px;
}

.nav-left > a {
    display: flex;
    align-items: center;
    line-height: 0;
}

/* ===============================
   LOGO
=============================== */
.logo {
    display: block;
    width: auto;
    height: 52px;
    margin-right: 0;
    object-fit: contain;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.08));
}

/* ===============================
   LEFT NAV LIST
=============================== */
.nav-left ul {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-left ul li {
    list-style: none;
    margin: 0 6px;
}

.nav-left ul li img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

/* ===============================
   SEARCH
=============================== */
.search-box {
    display: flex;
    align-items: center;
    width: 320px;
    padding: 0 15px;
    border-radius: 20px;
    background: #efefef;
}

.search-box img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.search-box input {
    width: 100%;
    padding: 10px;
    border: 0;
    outline: none;
    background: transparent;
    font-size: 14px;
}

/* ===============================
   USER ICON
=============================== */
.nav-user-icon {
    position: relative;
    margin-left: 30px;
    cursor: pointer;
}

.nav-user-icon img {
    width: 40px;
    height: 40px;
    border-radius: 2px; /* or 0 for sharp square */
    object-fit: cover;
}

/* ===============================
   ONLINE STATUS
=============================== */
.online::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;

    width: 7px;
    height: 7px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #41db51;
}

/* ===============================
   SETTINGS MENU
=============================== */
.settings-menu {
    display: none;
    position: absolute;
    top: 60px;
    right: 20px;
    z-index: 200;

    width: 250px;
    padding: 10px;
    border-radius: 6px;

    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.settings-menu.active {
    display: block;
}

.settings-menu-inner {
    padding: 10px 15px;
}

.settings-menu .user-profile {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.settings-menu .user-profile img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    border-radius: 2px;
    object-fit: cover;
}

.settings-menu .user-profile p {
    margin: 0;
    font-weight: bold;
}

.settings-menu .user-profile a {
    font-size: 12px;
    color: #c3a0fd;
    text-decoration: none;
}

.settings-menu hr {
    margin: 8px 0;
    border: 0.5px solid #333;
}

/* ===============================
   SETTINGS LINKS
=============================== */
.setting-links {
    display: flex;
    align-items: center;
    margin: 5px 0;
}

.setting-links img.settings-icon {
    width: 20px;
    margin-right: 10px;
}

.setting-links a {
    display: flex;
    justify-content: space-between;
    width: 100%;
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
}

.setting-links a img {
    margin-left: auto;
}

/* ===============================
   DARK MODE
=============================== */
body.dark {
    background: #1e1e1e;
    color: #ccc;
}

body.dark .left-sidebar,
body.dark .right-sidebar,
body.dark .main-content,
body.dark footer {
    background: #2c2c2c;
    color: #ccc;
}

#dark-btn {
    width: 40px;
    height: 20px;
    border-radius: 20px;
    background: #333;
    cursor: pointer;
}

#dark-btn span {
    display: block;
    width: 18px;
    height: 18px;
    margin: 1px;
    border-radius: 50%;
    background: #fff;
    transition: 0.3s;
}

#dark-btn.active span {
    transform: translateX(20px);
    background: #91caff;
}


/* ===============================
   NOTIFICATIONS
=============================== */
.notif-icon-wrapper {
    position: relative;
}

.notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: linear-gradient(135deg, #7d6dff 0%, #5ec1ff 100%);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(109, 94, 196, 0.28);
}

.notif-dropdown {
    display: none;
    position: absolute;
    top: 50px;
    right: 50%;
    transform: translateX(50%);
    z-index: 999;
    width: 290px;
    max-height: 360px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #e9ddff;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #fbf8ff 100%);
    box-shadow: 0 10px 26px rgba(76, 70, 120, 0.14);
}

.notif-dropdown.active {
    display: block;
}

.notif-dropdown .notif-item + .notif-item {
    margin-top: 6px;
}

.notif-dropdown a.notif-item {
    display: flex;
    width: 100%;
    box-sizing: border-box;
}

.notif-dropdown .notif-item {
    width: 100%;
    max-width: 100%;
    border-radius: 10px !important;
}

.notif-item,
.notif-item:visited,
.notif-item:hover,
.notif-item:active {
    display: flex !important;
    width: 100%;
    box-sizing: border-box;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.35;
    color: #2b2340 !important;
    text-decoration: none !important;
}

.notif-item + .notif-item {
    margin-top: 6px;
}

.notif-item {
    border-radius: 10px !important;
}

.notif-item.unread {
    background: #efe9ff !important;
    border: 1px solid #ddd1ff !important;
    border-radius: 10px !important;
}

.notif-item.read {
    background: #ffffff !important;
    border: 1px solid transparent !important;
    border-radius: 10px !important;
}

.notif-item.unread:hover {
    background: #e6ddff !important;
    border-radius: 10px !important;
}

.notif-item.read:hover {
    background: #f7f2ff !important;
    border-radius: 10px !important;
}

.notif-item img {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.notif-text {
    flex: 1;
    min-width: 0;
    color: #2b2340;
}

.notif-text,
.notif-text * {
    color: #2b2340 !important;
    text-decoration: none !important;
}

.notif-text strong {
    color: #4a3fd1 !important;
    font-weight: 700;
}

.notif-text,
.notif-text p,
.notif-text span {
    color: inherit;
}

.notif-text p {
    margin: 0;
}

.notif-time {
    display: block;
    margin-top: 3px;
    font-size: 11px;
    color: #8a819f !important;
}

.notif-empty {
    padding: 10px 6px;
    font-size: 13px;
    color: #7d7398;
    text-align: center;
}

.notif-view-all,
.notif-view-all:visited,
.notif-view-all:hover,
.notif-view-all:active {
    display: block;
    margin-top: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    background: #f3f0ff;
    color: #6b68ff;
    text-align: center;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: 0.2s ease;
}

.notif-view-all:hover {
    background: #e8e2ff;
}

.kc-bank-link {
    color: #2d2238;
    text-decoration: none;
    font-weight: 600;
}

.kc-bank-link:hover {
    color: #8f5bd6;
    text-decoration: underline;
}

.kp-click {
    color: #b36cff;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.kp-click:hover {
    color: #8f5bd6;
    text-decoration: underline;
    text-shadow: 0 0 6px rgba(212, 146, 253, 0.35);
}