/* Assets/Modules/Notif/notif.css */

.notif-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: 10px;
}

.notif-bell {
    font-size: 1.2rem;
    color: var(--text-light);
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
    padding: 8px;
}

.notif-bell:hover {
    color: var(--primary-blue);
}

.notif-badge {
    position: absolute;
    top: 0px;
    right: 0px;
    background: #ef4444; /* Red color */
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: 50%;
    padding: 0px 5px;
    display: none; /* Hidden by default */
    transform: scale(0);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.notif-badge.active {
    display: flex;
    justify-content: center;
    align-items: center;
    transform: scale(1);
}

/* Glassmorphism Dropdown */
.notif-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    right: -10px;
    width: 320px;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    color: var(--text-light);
    display: none;
    flex-direction: column;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.notif-dropdown.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.notif-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 20px;
    width: 12px;
    height: 12px;
    background: rgba(15, 23, 42, 0.7);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
    z-index: -1;
}

.notif-header {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notif-header h4 {
    margin: 0;
    font-size: 1rem;
    color: white;
}

.mark-all-read {
    font-size: 0.8rem;
    color: var(--primary-blue);
    cursor: pointer;
    background: none;
    border: none;
    outline: none;
    transition: color 0.3s;
}

.mark-all-read:hover {
    color: #fff;
    text-decoration: underline;
}

.notif-body {
    max-height: 350px;
    overflow-y: auto;
    padding: 10px 0;
}

.notif-body::-webkit-scrollbar {
    width: 6px;
}
.notif-body::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.1);
}
.notif-body::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
}

.notif-item {
    padding: 12px 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s;
    cursor: pointer;
}

.notif-item:last-child {
    border-bottom: none;
}

.notif-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.notif-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notif-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
}



.notif-time {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.5);
}

.notif-message {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.4;
}

.notif-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 5px;
}

.mark-read-btn {
    font-size: 0.75rem;
    background: rgba(59, 130, 246, 0.2);
    color: var(--primary-blue);
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.mark-read-btn:hover {
    background: var(--primary-blue);
    color: white;
}

.notif-empty {
    padding: 30px 15px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.notif-empty i {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.2);
}

/* Toast Notification (Popup) */
.notif-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notif-toast {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    padding: 15px;
    width: 300px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
    cursor: pointer;
}

.notif-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.notif-toast-icon {
    font-size: 1.5rem;
    color: var(--primary-blue);
    flex-shrink: 0;
}

.notif-toast-content {
    flex-grow: 1;
}

.notif-toast-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: white;
    margin-bottom: 3px;
}

.notif-toast-msg {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.3;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .notif-dropdown {
        position: fixed;
        top: 70px;
        right: 15px;
        left: 15px;
        width: auto;
    }
}

/* Rich Text Formatting Styles */
.notif-message .notif-size-small, .notif-toast-msg .notif-size-small { font-size: 0.75rem; }
.notif-message .notif-size-medium, .notif-toast-msg .notif-size-medium { font-size: 0.9rem; }
.notif-message .notif-size-large, .notif-toast-msg .notif-size-large { font-size: 1.2rem; font-weight: bold; }

.notif-emoji {
    height: 22px;
    width: auto;
    vertical-align: middle;
    margin: 0 2px;
    display: inline-block;
    transition: transform 0.2s ease;
}

.notif-emoji:hover {
    transform: scale(1.3);
}
