/* StudEco Premium Notifications */
:root {
    --notif-bg: rgba(255, 255, 255, 0.85);
    --notif-border: rgba(255, 255, 255, 0.3);
    --notif-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    --notif-primary: #06b6d4;
    --notif-text: #1e293b;
    --notif-muted: #64748b;
}

.notification-wrapper {
    position: relative;
    display: inline-block;
}

.notification-bell {
    position: relative;
    padding: 8px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.notification-bell:hover {
    background: rgba(6, 182, 212, 0.1);
    transform: scale(1.1);
}

.notification-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #ef4444;
    color: white;
    font-size: 10px;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
    z-index: 10;
}

.notification-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    right: -10px;
    width: 340px;
    background: var(--notif-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--notif-border);
    border-radius: 20px;
    box-shadow: var(--notif-shadow);
    display: none;
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
    transform-origin: top right;
    animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.notification-dropdown.active {
    display: flex;
}

.notification-header {
    padding: 18px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-header h6 {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: var(--notif-text);
}

.notification-header button {
    background: none;
    border: none;
    color: var(--notif-primary);
    font-size: 13px;
    cursor: pointer;
    font-weight: 700;
    transition: opacity 0.2s;
}

.notification-header button:hover {
    opacity: 0.7;
}

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

.notification-item {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.notification-item:hover {
    background: rgba(6, 182, 212, 0.05);
}

.notification-item.unread {
    background: rgba(6, 182, 212, 0.03);
    border-left: 4px solid var(--notif-primary);
}

.notification-item h5 {
    font-size: 14px;
    margin: 0;
    font-weight: 700;
    color: var(--notif-text);
}

.notification-item p {
    font-size: 13px;
    margin: 0;
    color: var(--notif-muted);
    line-height: 1.5;
}

.notification-item .time {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
}

.no-notifications {
    padding: 40px 20px;
    text-align: center;
    color: var(--notif-muted);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
