#notification-button:hover {
    cursor: pointer;
}

#notification-button {
    position: relative;
    display: inline-block;
}

.notification-button::after {
    content: attr(data-badge);
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 20px;
    background-color: red;
    color: white;
    font-size: 16px;
    border-radius: 50%;
    text-align: center;
    line-height: 20px;
    font-weight: 800;
}

body {
    /* ORIGINAL BACKGROUND: #d7d7d7 */
    /*background: #B0B1AB;*/
    background: #f4f4f4;
}

.nav-link {
    color: var(--bs-primary);
}

.navbar-light .navbar-toggler {
    background-color: var(--bs-primary);
}

.nav-link:hover {
    color: var(--bs-primary);
}

.bg-light {
    background: var(--bs-primary) !important;
    color: #FFF !important;
}

.navbar-light .navbar-nav .nav-link, .navbar-light .navbar-brand {
    color: #FFF !important;
}

.btn-primary {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
}

.btn-primary:hover, .btn-primary:active, .btn-primary:focus {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
    box-shadow: none;
}

a {
    color: var(--bs-primary);
}

a:not([class*="btn"]):hover {
    color: var(--bs-primary);
}

.form-check-input:checked {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.message-box .message-wrapper {
    width: 100%;
    display: flex;
}

.message-box .message {
    flex-direction: column;
    padding: 5px 13px;
    border-radius: 20px;
    margin-bottom: 14px;
}

.message-box .message.sender {
    margin-left: auto;
    background: var(--bs-primary);
    color: #f4f4f4;
}

.message-box .message.receiver {
    background: #CCC;
}


#notification-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 58px;
    right: 12px;
    width: 360px;
    max-width: calc(100vw - 24px);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.13), 0 1px 6px rgba(0,0,0,0.07);
    border: 1px solid rgba(0,0,0,0.07);
    overflow: hidden;
}

.notif-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 12px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.notif-panel-header span {
    font-weight: 600;
    font-size: 15px;
    color: #0f172a;
}

.notif-panel-header button {
    background: none;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    padding: 2px;
    display: flex;
    align-items: center;
    border-radius: 6px;
    line-height: 1;
    transition: color 0.15s;
}

.notif-panel-header button:hover {
    color: #475569;
}

.notif-panel-header button .material-symbols-outlined {
    font-size: 18px;
}

.modal-content-notification {
    max-height: 400px;
    overflow-y: auto;
}

.notif-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 36px 16px;
    color: #94a3b8;
    font-size: 13px;
    text-align: center;
}

.notif-empty .material-symbols-outlined {
    font-size: 36px;
    color: #cbd5e1;
}

.notif-empty p {
    margin: 0;
}

.notif-panel-footer {
    padding: 10px 16px 14px;
    border-top: 1px solid rgba(0,0,0,0.06);
    text-align: center;
}

.notif-panel-footer a {
    font-size: 13px;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.notif-panel-footer a:hover {
    text-decoration: underline;
}

/* Notification items in dropdown */
#notification-modal .notification-content {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: background 0.12s;
}

#notification-modal .notification-content:last-child {
    border-bottom: none;
}

#notification-modal .notification-content:hover {
    background: #f8fafc;
}

#notification-modal .notification-content strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 3px;
}

#notification-modal .notification-content p {
    font-size: 12px;
    color: #64748b;
    margin: 0 0 6px;
    line-height: 1.5;
}

/* Card-based notifications in dropdown */
#notification-modal .notification-wrapper {
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

#notification-modal .notification-wrapper .card {
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 12px 16px;
    background: transparent;
}

#notification-modal .notification-wrapper .card:hover {
    background: #f8fafc;
}

.btn-primary.active {
    background-color: var(--bs-danger);
    border-color: var(--bs-danger);
}

.tree:before {
    content: '	\2514';
}

.navbar-light .navbar-nav .nav-link.active, .navbar-light .navbar-nav .show > .nav-link {
    text-decoration: underline;
}

.card {
    -webkit-box-shadow: 10px 10px 19px -6px rgba(1, 87, 155, 0.49);
    -moz-box-shadow: 10px 10px 19px -6px rgba(1, 87, 155, 0.49);
    box-shadow: 10px 10px 19px -6px rgba(1, 87, 155, 0.49);
}

.chat-main-eye {
    width: 50px;
    height: 50px;
    background: var(--bs-primary);
    border-radius: 50px;
    font-size: 32px;
    text-align: center;
    color: white;
    bottom: 0;
    position: absolute;
    right: 0;
}

.chat-main-eye:hover {
    background: var(--bs-primary);
    cursor: pointer;
}

.chat-item {
    display: inline-block;
}

.chat-item.card {
    right: 60px;
}

.chat-form:only-child {
    display: inline-block;
}

.chat-form input {
    outline: none;
    max-width: 160px;
    background: none;
    border: none;
    height: 30px;
}

.chat-form input:focus-visible {
    border: none;
    outline: none;
}

.chat-form .chat-input-wrapper {
    display: inline-block;
    padding: 5px;
    border-radius: 20px;
    border: 1px solid black;
}

.chat-form button {
    display: inline-block;
    background: #CCC;
    border: none;
    height: 30px;
    width: 30px;
    border-radius: 20px;
}

.chat-form button:hover {
    background: var(--bs-primary);
    color: white;
}
.list-group-item.active > a {
    color: white;
}

/* Session toasts */
.session-restore-toast,
.session-expired-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background: var(--bg-surface);
    color: var(--text-main);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    font-size: var(--font-size-sm);
    white-space: nowrap;
}

.session-toast-dismiss {
    background: none;
    border: none;
    padding: 0;
    color: var(--text-muted);
    cursor: pointer;
    font-size: var(--font-size-sm);
    line-height: 1;
}

.session-toast-dismiss:hover {
    color: var(--text-main);
}

.session-toast-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.session-toast-link:hover {
    text-decoration: underline;
}