

.navbar .dropdown-toggle {
    color: inherit !important;
    text-decoration: none !important;
}

.navbar .dropdown-toggle:hover {
    color: inherit !important;
    background: none !important;
}

.link-normal {
    color: inherit !important;
    background: none !important;
    text-decoration: none;
}

/* show animation when .link-normal is clicked */
.link-normal:active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
    /* set text underline on active */
    text-decoration: underline;
}

.fs-7 {
    font-size: 14px;
}

.fs-8 {
    font-size: 12px;
}

.hover-parent:hover .hover-show {
    opacity: 1;
    visibility: visible;
}

.hover-show {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
    pointer-events: auto;
    cursor: pointer;
}

.skeleton {
    display: inline-block;
    font-size: inherit;
    width: 90%;
    min-height: 1lh;
    border-radius: 4px;
    background-color: var(--bs-skeleton-bg, #e0e0e0);
    position: relative;
    overflow: hidden;
    cursor: wait;
}

/* Shimmer effect */

.skeleton::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient( 90deg, transparent, var(--bs-skeleton-shimmer, rgba(255,255,255,0.6)), transparent );
    animation: shimmer 1s infinite;
}

@keyframes shimmer {
    100% {
        left: 100%;
    }
}




/* Light theme variables */

[data-bs-theme="light"] {
    --bs-skeleton-bg: #e0e0e0;
    --bs-skeleton-shimmer: rgba(255, 255, 255, 0.6);
}

/* Dark theme variables */

[data-bs-theme="dark"] {
    --bs-skeleton-bg: #3a3a3a;
    --bs-skeleton-shimmer: rgba(255, 255, 255, 0.2);
}

.min-w-100 {
    min-width: 100px;
}

.min-w-200 {
    min-width: 200px;
}

.min-w-300 {
    min-width: 300px;
}

.min-h-100 {
    min-height: 100px;
}

.min-h-200 {
    min-height: 200px;
}

.min-h-300 {
    min-height: 300px;
}

.min-h-400 {
    min-height: 400px;
}

.max-h-400 {
    max-height: 400px;
}

.a-no-deco {
    color: inherit;
    text-decoration: none;
}

.a-no-deco:hover {
    text-decoration: underline;
}

.th-top {
    position: sticky;
    top: 0;
    z-index:1;
}

/* Custom class to hide number input spinners */

.no-spinner::-webkit-inner-spin-button, .no-spinner::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.no-spinner {
    -moz-appearance: textfield;
}

.cursor-pointer {
    cursor: pointer;
}

.bg-auth {
    min-height: 100vh;
    background: radial-gradient(1200px 600px at 10% -10%, rgba(13,110,253,.18), rgba(13,110,253,0) 60%), radial-gradient(900px 500px at 110% 0%, rgba(32,201,151,.18), rgba(32,201,151,0) 60%), linear-gradient(180deg, rgba(108,117,125,.08), rgba(108,117,125,0));
    transition: background 0.3s ease;
}

[data-bs-theme="dark"] .bg-auth {
    background: radial-gradient(1200px 600px at 10% -10%, rgba(13,110,253,.25), rgba(13,110,253,0) 60%), radial-gradient(900px 500px at 110% 0%, rgba(32,201,151,.25), rgba(32,201,151,0) 60%), linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,0));
}

.glass {
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    background-color: color-mix(in srgb, var(--bs-body-bg) 70%, transparent);
    border: 1px solid color-mix(in srgb, var(--bs-border-color) 90%, transparent);
}

.underline {
    transition: background-color 0.3s ease; /* smooth transition */
}

.underline:hover {
    background-color: #ececec;
}

/* Dark mode underline */
[data-bs-theme="dark"] .underline:hover {
    background-color: #404040;
}

/* scrollable list wrapper */
.noti-list {
    max-height: 480px;
    overflow-y: auto;
}

/* phones: make the list fill most of the screen height */
@media (max-width: 576px) {
    .noti-list {
        /* 100vh minus approx header+footer of modal */
        max-height: calc(100vh - 8rem);
        overflow-y: auto;
    }
}

/* each notification row */
.noti-item {
    display: flex;
    gap: .75rem;
    padding: .75rem 1rem;
    border-bottom: 1px solid rgba(0,0,0,.05);
    background-color: #fff;
    text-decoration: none;
    color: inherit;
    position: relative;
    cursor: pointer; /* feel free to remove if rows aren't clickable */
}

.noti-item:last-child {
    border-bottom: 0;
}

/* hover effect */
.noti-item:hover {
    background-color: #f0f6ff; /* light blue hover */
}

/* unread background highlight */
.noti-item.unread {
    background-color: #eef4ff;
}

/* unread dot (blue dot on the left) */
.unread-dot {
    width: .5rem;
    height: .5rem;
    border-radius: 50%;
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: .4rem;
    background-color: transparent; /* default for read state */
}

/* when parent .unread, make it visible */
.noti-item.unread .unread-dot {
    background-color: #0d6efd; /* Bootstrap primary-ish */
}

/* avatar / icon square or circle */
.noti-avatar {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-color: #dee2e6; /* fallback bg if no img */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    font-weight: 600;
    color: #495057;
    line-height: 1;
}

/* use this if you prefer a rounded-rect icon style instead of a circle */
.noti-avatar.small-icon {
    border-radius: .6rem;
    font-size: 1rem;
    font-weight: 500;
}

/* main content block (title + message + time) */
.noti-content {
    flex: 1;
    min-width: 0; /* allows text truncation */
}

/* top row: title + time */
.noti-topline {
    display: flex;
    align-items: baseline;
    gap: .5rem;
    flex-wrap: wrap;
}

/* notification title text */
.noti-title {
    font-size: .85rem;
    font-weight: 600;
    line-height: 1.2;
    color: #000;
}

/* timestamp text */
.noti-time {
    font-size: .7rem;
    line-height: 1.2;
    color: #6c757d; /* matches Bootstrap text-muted tone */
}

/* body / snippet text */
.noti-message {
    font-size: .8rem;
    line-height: 1.3;
    color: #495057;
    margin-top: .25rem;

    /* clamp to 3 lines, ellipsis overflow */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}

/* right-side mini badge/tag (optional) */
.noti-meta {
    flex-shrink: 0;
    align-self: flex-start;
    margin-left: auto;
    font-size: .7rem;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;

    /* light "pill" style that still looks ok next to Bootstrap badges */
    color: #0d6efd;
    background-color: #e7f1ff;
    border-radius: .4rem;
    padding: .2rem .4rem;
}

/* scrollbar cosmetics (optional, can delete safely) */
.noti-list::-webkit-scrollbar {
    width: 6px;
}
.noti-list::-webkit-scrollbar-track {
    background: transparent;
}
.noti-list::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,.15);
    border-radius: 3px;
}

.btn-min-100 {
    min-width: 100px;
}

/* css to .highlight fade in and out */
.highlight {
    animation: highlightFade 2s ease;
}

@keyframes highlightFade {
    0% {
        background-color: #ffff99; /* light yellow */
    }
    100% {
        background-color: transparent;
    }
}

/* Apply overflow-y only on md and above */
.overflow-md-y {
    overflow-y: visible; /* default for < md */
}

@media (min-width: 768px) { /* md breakpoint */
    .overflow-md-y {
        overflow-y: auto; /* or scroll */
        max-height: 80vh;
    }
}

@media (max-width: 991.98px) { /* < lg */
    .sticky-below-lg {
        position: sticky;
        top: 0;
        z-index: 1020; /* matches Bootstrap sticky */
        box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075);
    }
}